174 Commits (b13ed265870177a7dc7747319eb62f8e3b32cee0)

Author SHA1 Message Date
pichalite 53bbc17f32 add uid to hook 9 years ago
barisusakli d9b6a06714 limit topic views by session 9 years ago
Julian Lam 97ce08f5af Removed rel="canonical", closes #3758
On the advice of the following articles:
  - http://googlewebmastercentral.blogspot.com/2013/04/5-common-mistakes-with-relcanonical.html
  - https://moz.com/blog/rel-confused-answers-to-your-rel-canonical-questions

rel="canonical" should not be shown on the same page
as rel="prev" and rel="next" as Google will implicitly
assume that they all point to the same page. With the
"pageless" variety only showing the first page of posts,
it explains exactly why any post content after the first
page is not indexed by Google.

... or perhaps it *is* indexed, but not returned. Who
the heck knows. 😄
10 years ago
barisusakli b08f6073de check ogImageUrl 10 years ago
Raphael Beer cf7b7a8d4c Respond with 404 when topic inside hidden category 10 years ago
Julian Lam 34725ec3e5 Fixes #3852
Added meta data to user profile pages, and also added noEscape
option to meta tag input. If set, validator escaping won't be
run on that value.
10 years ago
barisusakli 46c2563164 removed rooms.js removed browsing users, removed chat syncing across sockets
use lastonline for online detection
10 years ago
barisusakli 1ecf27417a removed commented out stuff removed topics.enter 10 years ago
barisusakli 353ebb71d2 removed unnecessary if 10 years ago
barisusakli c2b29ff4c4 add page to canonical link #3758 10 years ago
barisusakli 2d96cdba1c closes #3720 10 years ago
barisusakli 2d01fe78d0 removed privileges.posts.get from addPostData
privilege data is already available higher up
10 years ago
barisusakli 902f529d53 closes #3692 10 years ago
barisusakli 5a3a627fcd fix rel tag urls 10 years ago
barisusakli c617a3f008 inf scroll changes
dont load main post if start > 0
10 years ago
barisusakli 933a89d2ae closes #3654 removed double escape 10 years ago
barisusakli 3416f600c5 #3654 10 years ago
barisusakli 80701f44d6 fix syntax 10 years ago
barisusakli b3cbb46010 #3654
include add post index
10 years ago
barisusakli fb6abd32c4 closes #3461 10 years ago
barisusakli f3b6a5fbb9 generic getObject 10 years ago
barisusakli c139dfa843 closes #3631 10 years ago
barisusakli 8af64ba984 closes #3626 10 years ago
Julian Lam 8070de7962 closes #3461 10 years ago
barisusakli 25502f0687 closes #3508 10 years ago
barisusakli 1d4efaee68 fix indices if postsPerPage is an odd number 10 years ago
barisusakli a924c456b9 closes #3113 10 years ago
barisusakli dc16a665ae page checks #3089 10 years ago
barisusakli 47a2377229 closes #3089 10 years ago
Barış Soner Uşaklı 21b634e03f closes #3081 10 years ago
Julian Lam 8ee40ece71 removed checks that would send the user to 404 if the slug didn't match, restored old behaviour of redirecting to the correct slug. #3047 10 years ago
barisusakli 835d4db481 dont add category/topic slug if user doesnt have read permission
or category is disabled etc.
10 years ago
barisusakli 2fd4bcde3f added req.uid user id for logged in users, 0 for guests 10 years ago
barisusakli 878e548296 renamed end to stop globally
fixed getting favourites for admins
10 years ago
barisusakli ddd4680ea7 added helpers.redirect 10 years ago
acardinale 8975a0962e Update topics.js 10 years ago
acardinale a63c679935 Add hook "filter:topic.build"
Same behavior as "filter:register.build"
10 years ago
barisusakli 8bbd7d971b fix index to post if sorting is by votes and pagination is used 10 years ago
barisusakli c859586269 calculate topic post indices instead of querying db 10 years ago
barisusakli 38dd3d4281 search newer/older than and better pagination 10 years ago
barisusakli 6a837632fa fix first post loading when pagination is enabled 10 years ago
barisusakli aaa1fae558 closes #2597 10 years ago
barisusakli 98ff75b9c3 closes #2581 10 years ago
Julian Lam a8c818c6cd added new hook, filter:controllers.topic.get 10 years ago
barisusakli 8965855218 made breadcrumbs regular function
less db calls as well
11 years ago
barisusakli be11577aa4 closes #2477 11 years ago
Julian Lam 78763834fe closed #2122 11 years ago
Julian Lam deac12c540 closed #2424 11 years ago
barisusakli 114d0506e1 fixed typo 11 years ago
barisusakli c1b61522f7 check if topic is deleted 11 years ago
barisusakli 556e7066e8 moved notFound notAllowed to helpers 11 years ago
barisusakli d9a071d710 removed unused code from category and topic controller 11 years ago
barisusakli af4cbfb20d closes #2368 11 years ago
Julian Lam 44175188c4 handling case where user does not satisfy any of the privilege thresholds given to the hasEnoughReputationFor method 11 years ago
barisusakli 268ecd5157 single call to get slug and postcount 11 years ago
barisusakli 209edf182f 404 pages that are out of range 11 years ago
barisusakli e97bfc139b #1848 11 years ago
barisusakli c5ba327d8f fix empty pages 11 years ago
barisusakli 55a5d56989 fixed view count for guests 11 years ago
psychobunny 1b2ccda40b closes #2231; see #2218 11 years ago
barisusakli 7b8656ef8b facebook share doesn't display & 11 years ago
barisusakli 97e4f13a4d fix page count 11 years ago
barisusakli da64eb0873 closes #2117 11 years ago
barisusakli 23197af725 closes #2114 11 years ago
Julian Lam e1211527b0 Merge branch '0.5.1' into hashtalk
Conflicts:
	src/controllers/topics.js
11 years ago
barisusakli 2d5dc44ce5 closes #2123 11 years ago
psychobunny 0db93504ce forgot comma 11 years ago
psychobunny 2b90add560 fix for topics without category data (?)
@barisusakli lemme know if this is legit, if not, see line 195 as well
11 years ago
barisusakli 0914004e12 crash fix 11 years ago
Moritz Schmidt d1273516b5 default for missing post_index parameter
Avoid getting NaN if post_index param is not set (NaN is passed through to redis, redis complains, and the user ends up at /404)
11 years ago
barisusakli 5323934cc2 calculate page count in controller 11 years ago
barisusakli b7fd4c22d4 removed checkPostIndex middleware
1 less call to get topic post count
11 years ago
psychobunny a52c69d2a1 only send noscript paginator data on cold loads 11 years ago
barisusakli 55cbaf6a19 #2032 11 years ago
Julian Lam 8bac0bf361 Merge branch 'csrf-excision' into hashtalk 11 years ago
Julian Lam a061079995 fixed all POST routes to use new csrf middleware 11 years ago
barisusakli f1d5db6be0 pagination fix 11 years ago
barisusakli 4b20e78de2 hopefully final fix 11 years ago
barisusakli 518d731562 one more time 11 years ago
barisusakli f9c9f58561 post_index fix 11 years ago
Julian Lam 063d270f1a introducing "sort" querystring parameter in topic route, so that sorting can be overridden via query string. 11 years ago
barisusakli 603cddc687 closes #1934 11 years ago
barisusakli 4f5c78d675 merge 11 years ago
barisusakli 537dea4e4b crash fix 11 years ago
barisusakli ca90afd544 #1992
(drunk) not even done yet
11 years ago
barisusakli cfc67d4e90 closes #1924 11 years ago
psychobunny b6a8845d52 disable topic RSS 11 years ago
barisusakli 64d04f7aa6 closes #1803 11 years ago
psychobunny 92c0bd07c9 Ability to enable/disable the upvote/downvote system, closes #1672 11 years ago
psychobunny a2f85648c5 allow voting system to be disabled 11 years ago
barisusakli 870bf95e5b deleted topic feed fix 11 years ago
psychobunny eeabae5738 closes https://github.com/NodeBB/NodeBB/issues/1668 11 years ago
barisusakli d32dfd98b7 remove main post if page is greater than 1
this fixes pagination after the main post change
11 years ago
barisusakli 7610c11cd1 closes #450
backup database before upgrade!
upgrade script will take the first post of each topic and set the
`mainPid` property on the topic. then it will remove that pid from the
sorted sets for that topic, this was done to make alternative sorting
work.

added a new sorted set called `tid:<id>:posts:votes` that is used to
sort topic posts by vote count, the original sorted set `tid:<id>:posts`
is used to sort by oldest first or newest first.

the main post is added to the returned posts array on topic load and is
always at the top.
theme changes are minimal just a few new data properties on the posts
and the sorting dropdown.
hopefully didn't miss anything too critical.
11 years ago
barisusakli 0574022e02 fixes to infinitescroll 11 years ago
barisusakli 55dbc5c823 closes #1612
changed post links to "topic/<topic_id>/<topic_slug>/<post_id>"
11 years ago
psychobunny 791fde7904 fixing #1587 properly for unread count 11 years ago
psychobunny fee591e551 fixes #1587 11 years ago
barisusakli b8b482e287 closes #1555 11 years ago
barisusakli c7c54560bc fixes going into deleted topics for admins 11 years ago