Commit Graph

3880 Commits (ba90b5d113e21624a8a29a3a217b53476a968ab7)

Author SHA1 Message Date
Julian Lam cd10248226 basic topic searching via search bar working
Julian Lam df5283cbae Merge remote-tracking branch 'origin/0.5.1' into topic_searching
barisusakli 347fc05376 getPidIndex socket call
Julian Lam 1d3aafc08f adding sourceRoot to minified mapping
barisusakli d67cd489cd crash fix
Julian Lam 5d32073f2c Merge branch '0.5.1' into topic_searching
barisusakli 42f87a1db7 closes
Julian Lam 2d9ca83ae0 better error messaging when js fails to compile when reloading
Julian Lam fcbdc5e271 added recompilation of templates to NodeBB Reloading -
barisusakli eef200be10 closes
Julian Lam 5f96823f66 allowed the "forum updated" message to show up for reloads as well
psychobunny 1f6f2c13d5 apparently this was confusing
barisusakli b856ddb98f closes
Julian Lam 2bfa7d5b97 closed
Julian Lam ab77e6767e closed
Julian Lam 0c4a788698 added callbacks to css and js reloading, issue
Julian Lam 3e033043f3 on-demand reloading of client-side assets
Julian Lam 5886ccc419 framework for reloading
Julian Lam ba91d7aba6 proof-of-concept for hot-swapping of routes
barisusakli e751a0c0cf closes
barisusakli 7019618863 closes
barisusakli 62dd056faa tag search
barisusakli 95c839579e closes
barisusakli 5a42b6a7ea closes
Julian Lam 69b9e57daf completing subcategory integration in backend, closed
Julian Lam b7c7dd98c3 ACP setting and API return for subcats
barisusakli 83de5ba5a4 added topic owner uid
barisusakli 06119510b7 merge
barisusakli 22fdf9f4ed getMainPost uses getMainPosts
barisusakli b858b120da closes
Julian Lam 74e5524492 fixing request to /api not returning api result
psychobunny 4dd32e1024 filter:category.get applies to all category-like API calls now
@a5mith
https://gist.github.com/psychobunny/572d867935469774c6e8#comment-1281883
barisusakli 77a7c5caef eachLimit notifications.push
barisusakli 24ea74dc41 lol
O(log(n)) to O(1) and away
barisusakli d411ed5c28 closes
Barış Soner Uşaklı 02889f2e70 call callback on follow/unfollow
barisusakli 05fdc945f3 closes
barisusakli 5ae7c92d55 notifications refactor
added getMultiple which works with an array of nids
barisusakli dd9a383f46 removed unused functions
barisusakli ca90afd544
(drunk) not even done yet
barisusakli a9ca035e1e gotto check read after each pass
barisusakli b2f8a65bc8 removed slice
barisusakli 522fda2e58 closes
barisusakli d852f284da closes
barisusakli cd096f8832 sortedSetScores for tag counts
barisusakli e10eaf0d50 added tag counts to api return
barisusakli 931d46fe7e merge
barisusakli b50b5e4787 satifying my OCD
fire hook after successful follow/unfollow
psychobunny 0c17ee15f7 action:user.follow and action:user.unfollow
psychobunny 1036ba4636 removing timestamp from thread hooks... completely pointless
barisusakli d91fa5747d closes
barisusakli 60624eedec small tweak
barisusakli 5c91bc4335 optimized home
barisusakli c58712e2a9 closes
barisusakli d0d1ebb28c Merge remote-tracking branch 'origin/master' into 0.5.1
barisusakli 2d0637d7c6 fix user online status on profile page
barisusakli c9c454825e closes
barisusakli d12a526e82 check against 0 first
barisusakli e909e46786 closes
barisusakli 3ab2e70e07 Merge remote-tracking branch 'origin/master' into 0.5.1
barisusakli dda0322968 getUsersInCategory
barisusakli 299d7bfee3 Merge remote-tracking branch 'origin/master' into 0.5.1
barisusakli 5c84a3adb5 closes
barisusakli f562caaa61 callback
Julian Lam a2fb4a66b0 migrated ACP themes page from html rendered via js to template engine
barisusakli 37115ea3d6 Merge remote-tracking branch 'origin/master' into 0.5.1
Julian Lam b48571ceb8 fixed
barisusakli 464be4f7cc Merge remote-tracking branch 'origin/master' into 0.5.1
barisusakli 0847eb2c3d added uid to filter:header.build
barisusakli dae3ef49be show user names who upvoted a post on mouse over
barisusakli 005405b16c closes
barisusakli 9511e4a633 Merge remote-tracking branch 'origin/master' into 0.5.1
barisusakli b16932a676 check mainPid
barisusakli 5dd90880d4 Merge remote-tracking branch 'origin/master' into 0.5.1
barisusakli c358ff3d83 fix isSortedSetMembers on mongo
Julian Lam 4fa80263b0 fixed
barisusakli b50a6d8f34 Merge remote-tracking branch 'origin/master' into 0.5.1
Julian Lam cf6acf6b41 sacrificing a goat to ensure this doesn't come back to bite me
Julian Lam 5936c72f96 further fix to
barisusakli ac43ff3c3d closes
barisusakli ceaedf9e2f closes
barisusakli 1cf5c3145a doing it properly this time
mainPost always has index 0
barisusakli 8584da75f2 reverted main post change, breaks indices
barisusakli 32d46f3889 crash fix
barisusakli 851d5c0f32 send uids to isOnline in messaging
barisusakli c07d9121df small optimizations
user.isOnline works with an array of uids
do not make 2 trips to db to get main post and first 10 posts
Julian Lam 0e28b6f2d5 fixed -- missing pass-through
barisusakli c4b083330c closes
barisusakli c8084e9b2e closes
barisusakli 5e68e0b009 same deal as previous commit
barisusakli e137baccd9 fixed ip:recent weird
barisusakli 7642be3608 closes
barisusakli b5cc852551 do a single filter after getting all unread tids
barisusakli b8279dc737 optimize getUserGroups to work with multiple user ids
barisusakli 5b681678b1 could use async.apply here hm
barisusakli 4e4a583d9d took out the meta config check from image.js
barisusakli ea2975cb3f eachLimit on expire nids
barisusakli a2bb8029fe use utils.toISOString
barisusakli 5c6e26832e removed console.logs
barisusakli df0a5e780a prevent edit to change title length above max
barisusakli 46398fa924 removed unused require
psychobunny db2ef15a09 linting
psychobunny e77491fcbb closes
barisusakli 049d7f766e use getSetsMembers instead of async.map
barisusakli 7d179b68df faster notif prune
barisusakli f39d772a40 if notification is purged delete from user mapping as well
barisusakli cb519d53a1 isArray check
barisusakli 8e8b678d40 small tweak
barisusakli 84aadc03fd fix filter condition
psychobunny 90513be321 send callback directly
except this time I'm fixing my own derps instead of @barisusakli
barisusakli 7ffad7e0d1 send callback directly
barisusakli 528ee335d5 optimize getTopicsByTids and getTeasers
psychobunny 9a5ed0bf27 forgot err, thanks @barisusakli
psychobunny b1ef42889d updated site title for tags page to be more user friendly
psychobunny 38dc35f480 console.log
psychobunny 3a32058be1 closes
psychobunny 4cda8207e2 adding uid to filter:category.get
psychobunny c88327d075 added filter:category.get
barisusakli 76b257f7b8 optimized User.getUsers
barisusakli 59d4d2880f fixed markAsUnreadForAll permissions
barisusakli 906e1a3846 removed unused meta
barisusakli 90ac399f6d fix topics.loadMore so it checks read permission
barisusakli 805e6934b9 derp this function should only return err
barisusakli f55d1897c8 fix categories.loadMore so it checks read permission
barisusakli 100328ef06 shorter markAsUnread
barisusakli f49c95c16f closes
psychobunny d4dc716acd filter:templates.get_config, allows you to modify template config
as found here
https://github.com/NodeBB/nodebb-theme-vanilla/blob/master/templates/config.json
@Schamper
psychobunny a880ac6e9f do one api call for template configs rather than two on cold load
psychobunny 631edc92d3 extra var
barisusakli 5ce0ebb4ac single socket call on topic enter
psychobunny bb48bdb008 closes
barisusakli 95979d9d97 closes
barisusakli 473310d42d use empty string if referer is undefined
barisusakli b4182f57fe simplified callback
barisusakli b0b78c3092 minor fix to prevent err when trying to mark null nid
barisusakli e420ee5fb6 privilege fix for single category check
barisusakli e7700a3fde minor refactor
barisusakli c6c23aad5e eachLimit on move all topics
barisusakli 115598f382 minor refactor
barisusakli 62681c36ef if notif is deleted don't push, prevent crash
barisusakli 97909a6cac err checks
psychobunny e14a1e90c3 linting emitter.js
psychobunny 533659e2fd unnecessary property check
psychobunny be21e11b69 cleanup / lint
barisusakli 3424288f0a actually set url
psychobunny 53ae0c586d closes
barisusakli 3163f70ef2 add tid to post notification so its marked read on entry
barisusakli 0773f51260 closes
barisusakli 76ad2b8fb2 fixed to account header
barisusakli c217834165 fixed typo
barisusakli 1398937dd8 early outs for privs
no need to check if empty array is passed in, happens if there are no
unread topics
remove dupe cids before checking for privileges
barisusakli 7bfec99df1 permission fix for popular page
barisusakli de6e74c50e
barisusakli 3ff91b8c50 closes
barisusakli d9a0af712d group null and err check
barisusakli dc68dce27f check err
root--- f2d07d3182 fix fatal error when renaming group with no users
barisusakli 38b6c4ce55
barisusakli d97af5020a small cleanup to postSummary
barisusakli 9312675a77 Merge branch 'master' of https://github.com/NodeBB/NodeBB
barisusakli 5a2b02e798 fix var name,
Julian Lam 925cd99afb Merge branch 'master' into topic_searching
Julian Lam 89a9d4b7f2 logic for
barisusakli cfc67d4e90 closes
barisusakli 7e82d3d9a5 fix guest priv
barisusakli efdd795084 closes
barisusakli 8caedc935b online users fix
and jshint cleanup
Julian Lam bb7a71389e using websocketAddress config if supplied
barisusakli fed8cc6d53 optimize privileges and assorted fixes.
* new methods
privileges.categories.filter
privileges.topics.filter
privileges.posts.filter

they take a list of ids and a privilege, and return the filtered list of
ids, faster than doing  async.filter and calling the db for each id.

* remove event listeners on recent page before adding
* group.exists works for both single group names and arrays
* helpers.allowedTo works for both a single cid and an array of cids
* moved filter:topic.post hook right before topic creation.
* moved filter:topic.reply hook right before topic reply.
barisusakli eeb4c9f487 optimize getPostSummaryByPids
barisusakli 1a68fe5a26 possible fix for
barisusakli 68cf064b1e cleaned up a bit
barisusakli d0a0d02d31 mongodb list fix
barisusakli e8b767d0dd get recent poster uids
barisusakli 783926687c reduced active users
barisusakli 96b0b449b9 closes
barisusakli f31978aa2c moved core notifications all the way to the end
barisusakli 6e335ff29a removed debug
barisusakli f71bd41408 more fixes
barisusakli dfb6606432 one more fix
barisusakli 08ba683c7d fix callback
barisusakli d7520508e3 part1
Julian Lam 4d73a563c5 closed
Julian Lam e5be1d2840 closed
psychobunny 3f9e6e7d86 closes
psychobunny 60e74cc2c3 LTRIM support for mongo
psychobunny 7327730252 LTRIM support for redis
psychobunny cf031be904 better error handling for custom langauge files
barisusakli 2d94df93b8 isArray is enough
barisusakli 0792731873 new hook filter:topics.get
Julian Lam 0b01a780f8 registering static:app.load in core
Julian Lam 0bad6198d4 firing new third type of hook, static. New hook: static:app.load, closed
barisusakli eea987d8dd removed console.log
barisusakli 5a0e99956e some cleanup
Julian Lam b7d27fe48b god damnit @barisusakli :P
Julian Lam 91ce3634fc fixed
Julian Lam 086ebb7e5a closed
barisusakli 3829019bfa removed optional params
barisusakli c7de38f28e closes
messages:<uid>:<uid> list changed to messages:uid:<uid>:to:<uid>
sortedset
Julian Lam a79bb29216 partial fix to
barisusakli 3bfad766b3 closes
Aure77 965d6a0d66 Allow cookie domain customization from meta config
barisusakli d7bd35ab08
Julian Lam 8296dc5630 beginning topic searching + new hook
barisusakli d25300043c
Aure77 e28ed490ee Allow session cookie domain customization
psychobunny b604a4961c thanks @barisusakli
barisusakli e459592ac9 closes
psychobunny 47a86662de adding timestamp to topic action hooks
psychobunny 788b16fa62 adding uid to the topic hooks, so plugins can know the user that did the action
psychobunny 2e7d1f33dc action:topic.lock, action:topic.pin, action:topic.move
psychobunny 1a37176a9d filter:topic.get, surprisingly never implemented till today
barisusakli 8dce99250b final fix for
fix mongo functions so they return correct data if duplicate keys are
passed. getObjects(['post:1', 'post:1'], callback) was only returning
one object.
barisusakli fa8fcc00ec fix tag counts
if a tag is removed from a topic, update number of topics in that tag
barisusakli bc2f7339ee getLatestUndeletedPid will return string
psychobunny 685cd38162 calculate levenshtein distance between recent chat messages and temporarily ban if determined to be spam
psychobunny e95bc35240 Merge branch 'master' of https://github.com/NodeBB/NodeBB
Conflicts:
	src/upgrade.js
psychobunny b209af1e32 info instead of error
Julian Lam 883cee31bc added support for showSiteTitle in ACP, closes
barisusakli 7454fd53b9 possible fix for
barisusakli dc30d94ff8 info
Julian Lam 440a19ed57 Merge branch 'sourcemap-windows'
Julian Lam ce8bec5edb fixed mapping in web inspector
barisusakli fde8e9d90f on group destroy, remove it from all groups
previously if a group was destroyed it was left behind in privilege
groups
barisusakli 5c57ed5ea0 install db dependencies in upgrade script
Julian Lam 7cdcb83a98 fixed
barisusakli 238d6602a2 check for valid content,
barisusakli 8113ed6a4d closes , no upgrade script #successkid
barisusakli 054ceab0be isMemberOfGroups fix
barisusakli 6c48cbe6ce regFormEntry array
barisusakli 20df6fd5cd small fix
barisusakli 2bf38ec84b handle pinned topics
barisusakli 5292bdad5a closes
barisusakli 1e6d589080 show topics on home instead of replies
no template changes, instead of showing the latest x posts under
categories, we are now showing the latest x posts of the latest x
topics.
barisusakli a3fecee781 removed console.log err check
barisusakli 89bb11a58c closes
barisusakli 0e241456e4 less code
Julian Lam 8e0bc0257d fixed
barisusakli 82ffaad939 parseint
barisusakli c9fb5b3e11 changed user posted notification to include title
dont send 2 notifications if you are already following topic
barisusakli 81018d1305 closes
psychobunny cb08d4b04f getting rid of this one for good
psychobunny b5d3186120 plugins and themes can now define their own custom language strings. closes
barisusakli ab9af6202d Merge branch 'master' of https://github.com/NodeBB/NodeBB
barisusakli d00740703b use the new $text query from mongo 2.6
psychobunny 423da904de allow core to tap into NodeBB's hook system, closes
psychobunny e10307426d optional callback for registerHook
psychobunny 7e82393d9f plugins:loaded - using emitter class instead
psychobunny bab995626c some unused vars
Julian Lam be8e63cd50 special handling for filter:app.load
barisusakli ef8bbdd359 closes
doing andrew's //todo's since 1991
barisusakli 04c6ca2ebb closes
barisusakli b1e93c4558 fix for wrapper
barisusakli 6e66911ef7 delete unread chats on account delete
barisusakli a4975cab33 closes , closes
barisusakli a69973e7a7 topics.getPids will return mainPid as well
Julian Lam 14d7461252 updated deprecation notice for social network sso icons
Julian Lam 2f9fd620d7 fixed
psychobunny d78fdb1520 more confusing, works perfectably
psychobunny a67e0ea3c2 less confusing
psychobunny de5a564780 hinting
barisusakli 2c890ad609 moved pushUnreadCount
barisusakli e6a5199174 pass router to app.load closes
add a render method to router that forwards it to app
barisusakli 206acab1bf added posted data back whoops
barisusakli afb62c7484 optional timestamp to post.create
psychobunny 803b6f64b8 ability to disable sitemap.xml
psychobunny 704d81fe53 disable category RSS
psychobunny b6a8845d52 disable topic RSS
psychobunny dab44e0768 ability to disable rss feed
Julian Lam 021e31a03a better comments
barisusakli 7212f95582 small fix to routes
Julian Lam 645eb051ec added new hook filter:app.load, and deprecated action:app.load, hopefully fixes
barisusakli 67d5307a8f small change to tag search
psychobunny 08df29e4dd random console.log
barisusakli 90392025e6 small fix to router
barisusakli 6d8cc5648c some tag hooks/filters
psychobunny 9f6c05bb24 closes
barisusakli 42ea8652f1 possible fix for
Aziz Khoury ed7631cab5 tab indent fix
Aziz Khoury d1f97723e7 Group.join() callback made optional
barisusakli 943f3814e5 closes
barisusakli e036c20072 closes
barisusakli 61f7f0f889 fixed file upload checks
barisusakli ebaf8df0a9
barisusakli fcd460438d closes
barisusakli d3312f1b8e fixer or in jobs and users redefinition
barisusakli 633980ce4b active users cleanup
barisusakli 0362c1a3b0 show day/week/month/year popular topics
barisusakli b2ece27263 topic post hook
psychobunny 1d8aeda9c2 closes
Julian Lam 84832f57cc firing action:settings.set hook AFTER the object is saved in the db. What was I thinking?!
dhingey 9d45373b59 Change user.delete hook from action to filter
The user.delete hook is now a filter, giving plugins a chance to access
the user's data before it's deleted from Redis.
psychobunny 5b6acbad1e optimized widget call by bundling all queries into one for ; fixes active users widget crash
also fixes b3819fd076 properly
barisusakli 9fbd535b79 fixes vote buttons on infinite scroll and new posts
psychobunny b3819fd076 temporary fix for acp, need to reconsider how I'm doing this
psychobunny 4cbe97a466 don't need this file anymore
psychobunny c6183f1a82 closes
barisusakli 9d7a8fcc0b getSortedSetRevRangeWithScores
barisusakli b5df5c0a91 closes , level session
barisusakli 53d68be7c0 level sortedSetsRemove