Commit Graph

417 Commits (818182bc00044aa0a73bfe4e39366b2ded993c58)

Author SHA1 Message Date
Baris Usakli f4faee4283 moved image uploading to a require js module, added image upload to site logo
psychobunny 2ee29683a7 random whitespace
psychobunny 51395dda91 updated all RDB.hget in posts to use getPostField. new post filters for retrieving and saving posts. made editPost saving synchronous.
Julian Lam e8801a75f3 fixing weird passing in of a single param as an array for post.save hook
Julian Lam 9375369b88 fixed issues caused by inadvertant globalisation (and its subsequent fix)
psychobunny bf677522a9 added additional_profile_info footer in posts view; plugins - filter:posts.custom_profile_info hook lets you add info to post block footer
also fixed app.alert - if title is not set then do not show title.
Julian Lam 9613ea9018 reverted change where post title was sanitized on saving (which didn't
seem to work), now sanitizing post title on output
Julian Lam 7bf5b2ec57 changed fireHook to be error-first, closes
Julian Lam 4cea313060 updated getPostsByPids method to resolve premature return issue, and
refactored it to use async.map instead of eachSeries
Julian Lam cdaf409a99 monkey-patching getPostsByPids so that it returns ISOString instead of relativeTime
Julian Lam 3ab7306199 linting, minor bugfix, moving hiredis to optional deps
Julian Lam 2e4e94d5f8 Merge branch 'redis-optimizations' of https://github.com/adarqui/NodeBB into adarqui-redis-optimizations
Julian Lam 99440585e6 Merge branch 'master' into optimize-22-09-2013
Conflicts:
	package.json
Baris Usakli bae9f46d8b small fixes to search
Julian Lam 5f00f1e18e renamed "toHTML" method to "parse"
Andrew Darqui d2b858c997 slight variable name changes & remove unused var from getPostsByPids, removed underscore dependency
adarqui e26cc79819 redis multi pipeline used for getPostsByPids
Baris Usakli efef9c864c closes
Baris Usakli 24e4be77d8 closes
Baris Usakli ce61138351 fixed conflicts
Baris Usakli 564662ee00 closes
psychobunny aea3181d27 formatting - server side core
Baris Usakli 7798004568 fixed active_users not deleting over 10
Julian Lam 164977972e totally derped commit
Baris Usakli a2af4a3e91 closes
Baris Usakli d2eb73df96 can add and remove images from posts
Baris Soner Usakli 54ba6efc93 can edit and add an image to a post, still cant remove previously added images #issue
psychobunny bb8f75b4be merged.. conflicted up the ass. registration looks gud again
Baris Usakli 59f4b6788a Merge branch 'master' of https://github.com/designcreateplay/NodeBB
Baris Usakli a317a4d689 closes
Julian Lam 0243e9c5be issue , preparing for addition of post.parse hook by renaming markdownToHTML to just "toHTML", and making it asynchronous.
psychobunny f251b9c6c5 Merge branch 'master' into bootstrap3
Julian Lam 1961f01cab possibly fixing issue
Julian Lam aefa56221b closed
Baris Soner Usakli 545069b069 closes
psychobunny 0f8aad52b2 updated all alert-error to alert-danger (wtf did BS3 need to change that?)
Julian Lam d2aa2a9a29 derpiness
Baris Usakli c647793512 meta config changes, refactors
Julian Lam 43152bdaf9 closed - refactoring of post creation so that, normalizing post
objects

also fixes 
Julian Lam 7975844e4d renamed two hooks and added filter:post.get hook
Baris Usakli 1e66116e1d closes
Baris Usakli c05f56d28c fix for category view when its empty
Baris Usakli c70c67394a closes
Baris Usakli 92d3559146 closes
Baris Soner Usakli f83be710a0 closes , ,
Baris Usakli 929282a2f7 ban users, closes , banning a user hides all posts topics of a user and their profile page becomes inaccessible
Baris Usakli dceec0ce46 more winston, issue
Miguel Ángel Durán García deff75ad06 Typo with ending bracket
Baris Usakli ca3629d89b forgot to commit oops
Baris Soner Usakli 46afbc0ba0 assorted config fixes
Julian Lam e8f1d645fe closed
new build_title function to be called via socket

also added categories.getCategoryField and refactored all calls to
getTopicField to be error-first
Baris Soner Usakli 50c34e4f33 added infinite scrolling to unread page, issue
Baris Soner Usakli 1cc8214d16 infinite scrolling for topics in category view, changed how topics are stored in categories, using sorted sets instead of sets now, if you update to this commit run node app --upgrade to upgrade the redis schema,
Baris Usakli e979d1bf0d fixed home loading
Baris Usakli e69928d624 strip tags in recent replies
Baris Usakli 0bd56196cf index topic titles too
Baris Soner Usakli f0759863e6 reindex all call
Baris Soner Usakli d6b9a2799b full text search using reds, issue
Baris Soner Usakli 7297a26685 scroll to post 2
Baris Usakli 720dd9e960 scroll to posts
Baris Soner Usakli 9f2838849e moved the imgur clientID to the server config file
Julian Lam 2d64c9979e sending pid as well as content in action:save_post_content hook
Julian Lam 34bb9dddb5 sticking to style guide for method names (camelcase)
Julian Lam 25a1d25108 tested filter-type hooks, working! :)
Baris Soner Usakli 8947553ecd closes
Baris Soner Usakli 2237166e0f removed console.log
Baris Soner Usakli 85b0fe7175 images debug
Baris Soner Usakli e9afd4a107 fixed broken view again
psychobunny 1e86f379d5 removed external link icon from signatures only
Baris Usakli d9fa78a866 again
Julian Lam 99ba792e6d changing all calls to marked to instead go through
PostTools.markdownToHTML
Julian Lam f40bf46656 closed - anchors now have rel="nofollow" and open in a new window
Baris Usakli 52110016c7 closes
Baris Soner Usakli 919efd4052 drag and drop image upload first pass
Baris Soner Usakli f7291631d8 when a post is restored update topic timestamp
Baris Usakli ff9990701b changed to async.eachSeries
Baris Usakli a4de1b247f decrease/increase post count on post deletion/restore
Baris Usakli 68c011ce63 recent replies link to user and topic
Baris Soner Usakli 285e19fbbf closes
Baris Soner Usakli f90eb72706 added minimum lengths into error messages
Baris Soner Usakli 65029ae169 content length changes
Baris Usakli 4f9a2d0b93 content check in posts
Baris Usakli 582cd2f011 closes
Julian Lam 145898c3ba using nconf to manage config file now (issue )
Baris Soner Usakli c7a218af9a closes
Baris Soner Usakli cc6bd59560 closes
Baris Soner Usakli 8d2c4fd625 closes
Baris Soner Usakli 910e9d6ee0 closes
Baris Soner Usakli ac04bef26e live tiles on home page, ninjaed from andrew might need to randomize starting times, can be disabled by removing the slider class from the div, maybe this should be a setting in admin/categories
Baris Usakli 95e05410a2 more fixes
Baris Usakli 50078d7395 fixes in posttools and thread tools for hashes
Baris Usakli 98013536d1 more fixes
Baris Soner Usakli c1484afab7 more fixes
Baris Soner Usakli fabb55426c more work:
Baris Usakli 9dbaf9fef9 more work
Baris Usakli 1a992b7147 first batch of changes
Baris Usakli 8278e524d2 fixed topic/post count :/
Baris Usakli 0e5f280327 fixed categories read notification bug
Baris Usakli aecffecdf1 footer shows total topic post count
Baris Soner Usakli 761d8fc508 recent page gets alerts when new topics and posts are created
Baris Soner Usakli caf81b7312 fixed a crash if user profile is viewed when they have no posts, fixed the footer user link it uses the userslug now
Baris Soner Usakli 119708bc8a removed console.log
Baris Soner Usakli c93f8c0530 recent posts in /users/ page
Julian Lam 936a284397 enabling infinite post loader (re: issue ), fixes
Julian Lam 9df0b39a5d started integrating infinite post loading for topic view (re: issue )
Baris Soner Usakli 07f434be54 possible fix for topic sorting
Baris Soner Usakli 7d49294595 closes , used the sorted set and updated it when a new post is made to a topic
Baris Usakli d3a190d74e username to userslug change
Baris Soner Usakli 1620d1e4be fixes
Baris Soner Usakli e49d2707eb changed the follower/following keys
Baris Soner Usakli acdca15e6a possible fix for issue
Baris Soner Usakli 0a0f8a21f0 changed new Date().getTime() to Date.now() on server side
Baris Usakli b7e2bfff3d send notification to all followers when a user makes a post
Julian Lam 882b9a917f ability for users to now follow/subscribe to threads
Julian Lam 6f16088cd6 cleaning up readme file and fixing bugs in editing of posts ("asdf" anyone?)
Julian Lam 061c7a9e66 half broken editing
Julian Lam 878a678643 Merge branch 'install_script'
psychobunny bcc903ee1c run npm install. starting rss atom feeds of topics. fixed bug in topics where new topics created were not being saved properly
Julian Lam 88bf9425db install script + patching up integration with install wizard
psychobunny 8c2b6cda69 added timestamp to teaser, continuing work on recent replies block
psychobunny 6db259cf3f Merge branch 'master' of https://github.com/designcreateplay/NodeBB
Conflicts:
	src/posts.js
psychobunny 448673b141 recent replies part 2
Baris Usakli db6bbcc699 post every x seconds added it x to config
psychobunny a02a74604c moved CategoriesAdmin into its own file, hid popular/active, some jslinting + cleanup, renamed some fn calls to be more descriptive
psychobunny 55cb790d3c potential fix for duplicate chat results, started recent replies block
psychobunny 1f99666d9f moved favourites code out of posts
psychobunny cd4ca110a1 moved utils over to client side for code sharing
psychobunny a9672ab9d8 begin refactor of posts/topics + pagination + cleanup + async
Baris Soner Usakli 760037ba0a added signature to new replies
Julian Lam 26781157b3 refactoring posts, topics, and categories so that each "get" is moved up
one level. Topics.get will get all of the posts in a tid, etc.
psychobunny 34133eef8c post counts + read status working on homepage category listing. fixed posts.get_cid_by_pid
Baris Soner Usakli 9c5fa5fc5e signature work
Julian Lam e62fcc5831 refactored the entire privileges stack. .editable() is now deprecated, use
.privileges instead. Privileges now are inherited, so querying a topic's
privileges will automatically query it's parent category's privileges as
well, etc.
Julian Lam fd5277c815 fixed bug with isAdministator usage in Posts
Julian Lam 1a38644eb8 exposing thread tools to users in the "administrators" set, fixing up
Topics methods to call the "editable" method first instead of just
checking rep thresholds.

Also changed the limit on thread length from 10 to infinity (for now,
until infinite scrolling makes it in)
Baris Usakli bece6a7878 added signature to topic template
Julian Lam 4b6ad9607e removing static saving of recent post, and added in dynamic pulling on Topics.get
Julian Lam 8b1ff03cbb fixing social network logins and refactoring post actions
Julian Lam e5716145ae get pid and tid and cid methods in posts and topics
Julian Lam 2258ab3503 fixing up posts behaviour when a mod is the viewer
Julian Lam 6dd960d6c3 adding moderator checking to post actions
Julian Lam e256ee99f7 Merge branch 'master' of github.com:psychobunny/node-forum
Julian Lam bdeb7b13f1 interim commit for moderator support
Baris Usakli 4cf0af0556 fixed topics
Baris Usakli 96df6abe85 broken posts
Baris Usakli 34432773d6 fix crash when you go to /topics/nonexistant
Julian Lam 6013017ffd fixing bug where the favourites star was still shaded in if an anon tried to favourite a post
Julian Lam 71482163ed updating post and topic methods so that when you reply to a post or create a new topic, that topic isn't flagged as unread for you
psychobunny 725d4c09fa Merge branch 'master' of https://github.com/psychobunny/NodeBB
Conflicts:
	src/posts.js
psychobunny 435d24eb25 differentiation between the main post and rplies including preliminary duhsign
Baris Usakli 4117a3da48 anon users use default gravatar image
psychobunny 25e218442a updated category: tracking active participants + removed placeholder; recent author picture now pulled dynamically; graph/users/picture implemented
Julian Lam a4dfc604e7 changed favouriting behaviour so that it no longer allows anons to favourite, and favouriting your own posts don't raise your rep count
Julian Lam 98193ecb29 Merge branch 'master' of github.com:psychobunny/NodeBB
Julian Lam 3eff46bb52 restricting posting by anons, redirects to login page and saves post to localstorage
psychobunny a7cefe35f8 started to add real data to the topics listing, got latest post working per topic
Julian Lam 1b61511e8a fixed tabindex in reply window, wrapping up some minor bugs in editing
posts
Julian Lam 156d5dce08 post deletion
Julian Lam 4fd1244e2d some work on deleting posts, and allowing a mod to edit a post
Julian Lam b608a5ff97 Merge branch 'master' into edit_delete
Julian Lam fdc866c840 fixing line breaks on posts markdown rendering
Julian Lam 11cc68ce8f server-side srestruction to editing posts (though need to add rep of editor blah blah)
Julian Lam a8ab0055e6 UPDATE YOUR CONFIG TO INCLUDE THE "manage_content" PERMISSION!!
users with the proper "manage_content" permission can now edit anybody's
posts
Julian Lam b244da724e edit labels, and fixing responsive layout in topic view
Julian Lam e9a552eab4 editing of posts
psychobunny f218e0f3a7 user has read feature - turns post count badge red if there is a new post and grey if the user has seen this post already
psychobunny 5e901a76aa fixed the rest of the bugs that arised from the redis refactor
psychobunny fb83913670 redis wrapper removed. pretty safe to say that we didn't really need it in the first place.
Julian Lam ff025f0e48 interim commit to thread moving
Baris Soner Usakli 8710aa3457 users page
Julian Lam f0eeec8932 fixing alert removal by alert_id and adding alerts when thread is locked or pinned
psychobunny 2dccfb96e7 Merge branch 'master' of https://github.com/psychobunny/NodeBB
Conflicts:
	src/posts.js
	src/topics.js
psychobunny ae2be687b8 small refactor plus breadcrumbs for all ur pages
Julian Lam d35bffa830 removing topic from listing if deleted, and adding lock icon if thread is locked
Julian Lam a3e816b68e Merge remote-tracking branch 'origin' into thread_options
psychobunny 9e23279459 fixed socket notifications for new posts
Julian Lam 250c70bdfc topic locking and deletion
Julian Lam d7c5a3c150 merging from stash
psychobunny fa64e84dcc fixed a bug in templates, introduced categories, added default setup script onload, moved home.tpl code over to category, created hierachies
psychobunny 4c524922cc posts.get().unfactored().refactored().commited().pushed(); if (conflicts) throw new Error ('IGNORED'); yep.
Julian Lam 6b9b72a550 restricting post replies if a thread is locked (returns pid of -1 instead)
Julian Lam 922acc0f79 added locked state to Posts.get
Baris Soner Usakli 9a3c907056 set post rep to 0 when created
Baris Soner Usakli 48d5100dfe some profile changes, added post count to users and account and some css to account
Baris Soner Usakli 57354fe582 changed posts.reply to use the getUserFields method and removed the 2 old methods from user.js
Julian Lam 4a1dc28a26 *shenans* refactored Posts.get to use async module instead of callback
pyramid. Call time net decrease = 0, rofl.
Julian Lam 30bf27f1c7 Merge remote-tracking branch 'origin' into posts-refactor
Julian Lam 08c303b3c7 interim commit
psychobunny 8a2c18de5b fixed ajaxify bug that was rendering pages twice (solved flicker issue); fixed entering rooms that was casuing rep/streaming posts to not work; fixed /accounts to work by adding get data route; fixed bug that preventing gravatars from loading if there was more than one post in the thread
Baris Soner Usakli 54b4c55dfc removed the unused login function
Baris Soner Usakli 954392e4c4 fixes to gravatars and get functions in user.js
psychobunny 35f2ac7bf7 small style changes in header, added edit and delete button for moderators/own posts, hide moderator tools for all users except those that qualify
psychobunny 4807002447 fix for responsive avatar, fix for submit/discard buttons taking you away from the thread
Julian Lam 73fc0a3699 customising markdown parser to allow single line breaks
psychobunny ebaa69d987 responsive threads - although avatar is *slightly* misaligned on my phone. not sure why
psychobunny 3e96f64191 streaming posts. also moved topics to be entirely client side parsed. made some changes. added block level caching to templates. added a prepare method to templates
psychobunny bcb672e1fe socket rooms! and almost finished rep (socket updates) except for one small bug where current_user isnt being pulled
psychobunny 5e48b4cdc5 redis updates for sets: added sadd, srem, and sismember; finished basic favouriting/up/down votes - still need to add socket support in future
Baris Usakli 2a3ef2408f fixed post content
psychobunny 2b50c43a5f Merge branch 'master' of https://github.com/psychobunny/node-forum
psychobunny 7db1834182 gravatars in posts
Baris Usakli 3c86b43ba3 post count is incrementing when replying
psychobunny edf58693cc added real username to posts
psychobunny e766cc0c64 more style updates to topic + very basic quoting feature in, needs to be looked at in future
Julian Lam 0ae4e31163 RUN "npm install" AFTER THIS GIT PULL!!
Integrated markdown parsing to all post content. Title content by default
not going to be parsed, using default options unless circumstances dictate
otherwise.
Baris Usakli 39b24436d0 removed global.socket, passing in socket to the functions now
psychobunny 1bec9fc5aa breadcrumbs, and changed home in nav to 'forum'
psychobunny b2bc967e9b got ajaxify working with threads, some cleanup, fixed anon posting, got rid of a few more global.sockets calls
psychobunny e658531a67 replies are up
psychobunny 1f97fefac0 Merge branch 'master' of https://github.com/psychobunny/node-forum
psychobunny 0f3f2bb859 post replies, unfinished
Julian Lam 62779ef0dd relative time on topics and posts
Baris Soner Usakli 20aa5d439e log server errors in browser
added uid to posts
psychobunny 19a63bf51b fix for threads that have 0 posts
psychobunny 126f817f7d updates to posts
psychobunny 98ca14e31c started working on threadss, implemented slug url, fixed crashing bug during post creation
psychobunny d711a4e334 added post button, post window, added click handler to toaster alert, started on posts and topics schema and code