Commit Graph

238 Commits (38da65ee58977a303237aea5ae73044d4c1eb25b)

Author SHA1 Message Date
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