{"uid":8742,"username":"shobhit","userslug":"shobhit","email":"","email:confirmed":true,"joindate":1464181284176,"lastonline":1494935966177,"picture":"https://i.imgur.com/tmGbAAW.jpg","icon:bgColor":"#ff5722","fullname":"","location":"","birthday":"","website":"","aboutme":"","signature":"","uploadedpicture":"https://i.imgur.com/tmGbAAW.jpg","profileviews":401,"reputation":1,"postcount":7,"topiccount":5,"lastposttime":1494852923316,"banned":false,"banned:expire":0,"status":"offline","flags":null,"followerCount":0,"followingCount":0,"cover:url":"/assets/images/cover-default.png","cover:position":"50% 50%","groupTitle":null,"mutedUntil":0,"mutedReason":null,"githubid":null,"fbid":null,"gplusid":null,"twid":null,"shoutbox:toggles:sound":null,"shoutbox:toggles:notification":null,"shoutbox:toggles:hide":null,"shoutbox:muted":null,"displayname":"shobhit","groupTitleArray":[],"icon:text":"S","joindateISO":"2016-05-25T13:01:24.176Z","lastonlineISO":"2017-05-16T11:59:26.177Z","banned_until":0,"banned_until_readable":"Not Banned","muted":false,"aboutmeParsed":"","age":0,"emailHidden":true,"emailClass":"","moderationNote":"","isBlocked":false,"yourid":-1,"theirid":8742,"isTargetAdmin":false,"isAdmin":false,"isGlobalModerator":false,"isModerator":false,"isAdminOrGlobalModerator":false,"isAdminOrGlobalModeratorOrModerator":false,"isSelfOrAdminOrGlobalModerator":false,"canEdit":false,"canBan":false,"canMute":false,"canFlag":false,"canChangePassword":false,"isSelf":false,"isFollowing":false,"canChat":false,"hasPrivateChat":0,"showHidden":false,"allowProfilePicture":true,"allowCoverPicture":true,"allowProfileImageUploads":1,"allowedProfileImageExtensions":".png, .jpeg, .bmp, .gif, .jpg","groups":[],"selectedGroup":[],"disableSignatures":true,"reputation:disabled":false,"downvote:disabled":false,"profile_links":[],"websiteLink":"http://","websiteName":"","username:disableEdit":0,"email:disableEdit":0,"blocksCount":0,"counts":{"posts":7,"best":1,"controversial":0,"topics":5,"groups":0,"following":0,"followers":0},"posts":[{"pid":60223,"tid":10689,"toPid":null,"content":"
Hi,
\nHow can we fetch the active access tokens of a user using username and password?
Hi,
\nI have updated my nodebb to latest version i.e. NodeBB-1.5.0. Now I was trying to install a plugin but nothing is listing in Find Plugins.
This will give me the complete day posts and I'm looking for something like get all the posts from 9:00 AM to 12:00 PM.
\n","uid":8742,"timestamp":1494221202227,"deleted":false,"upvotes":0,"downvotes":0,"replies":0,"votes":0,"timestampISO":"2017-05-08T05:26:42.227Z","user":{"uid":8742,"username":"shobhit","userslug":"shobhit","picture":"https://i.imgur.com/tmGbAAW.jpg","status":"offline","displayname":"shobhit","icon:text":"S","icon:bgColor":"#ff5722"},"topic":{"uid":8742,"tid":10639,"title":"API call for all posts with timestamp","cid":2,"tags":[],"slug":"10639/api-call-for-all-posts-with-timestamp","deleted":0,"scheduled":false,"postcount":3,"mainPid":59939,"teaserPid":"59973","timestamp":1493967644811,"titleRaw":"API call for all posts with timestamp","timestampISO":"2017-05-05T07:00:44.811Z","isQuestion":null,"isSolved":null},"category":{"cid":2,"name":"General Discussion","icon":"fa-comment","slug":"2/general-discussion","parentCid":0,"bgColor":"#ad4bbe","color":"#ffffff","backgroundImage":"","imageClass":""},"isMainPost":false},{"pid":59939,"tid":10639,"toPid":null,"content":"Hello,
\nHow can we fetch all the posts using timestamp.
\nFor eg.:- get all the posts which was posted yesterday.
When I search something it throws the error. DBSearch pluging version is 1.0.1 and mongodb version is 2.6.12. Below is the error that I'm getting:
\nerror: TypeError: Cannot read property 'qs' of undefined
\nat Object.plugin.refactorSearchData [as method] (/home/shobhit/nodebb/node_modules/nodebb-theme-nanoheal/lib/theme.js:84:16)
\nat /home/shobhit/nodebb/src/plugins/hooks.js:136:12
\nat /home/shobhit/nodebb/node_modules/async/lib/async.js:375:13
\nat iterate (/home/shobhit/nodebb/node_modules/async/lib/async.js:262:13)
\nat Object.async.forEachOfSeries.async.eachOfSeries (/home/shobhit/nodebb/node_modules/async/lib/async.js:281:9)
\nat Object.async.inject.async.foldl.async.reduce (/home/shobhit/nodebb/node_modules/async/lib/async.js:374:15)
\nat fireFilterHook (/home/shobhit/nodebb/src/plugins/hooks.js:128:9)
\nat Object.Plugins.fireHook (/home/shobhit/nodebb/src/plugins/hooks.js:109:5)
\nat ServerResponse.res.render (/home/shobhit/nodebb/src/middleware/render.js:30:12)
\nat /home/shobhit/nodebb/src/controllers/search.js:64:7
\nat /home/shobhit/nodebb/node_modules/async/lib/async.js:726:13
\nat /home/shobhit/nodebb/node_modules/async/lib/async.js:52:16
\nat done (/home/shobhit/nodebb/node_modules/async/lib/async.js:246:17)
\nat /home/shobhit/nodebb/node_modules/async/lib/async.js:44:16
\nat /home/shobhit/nodebb/node_modules/async/lib/async.js:723:17
\nat /home/shobhit/nodebb/node_modules/async/lib/async.js:167:37
\nat /home/shobhit/nodebb/node_modules/async/lib/async.js:52:16
\nat Immediate._onImmediate (/home/shobhit/nodebb/node_modules/async/lib/async.js:1206:34)
\nat processImmediate [as _immediateCallback] (timers.js:383:17)
\nTypeError: Cannot read property 'qs' of undefined
\nat Object.plugin.refactorSearchData [as method] (/home/shobhit/nodebb/node_modules/nodebb-theme-nanoheal/lib/theme.js:84:16)
\nat /home/shobhit/nodebb/src/plugins/hooks.js:136:12
\nat /home/shobhit/nodebb/node_modules/async/lib/async.js:375:13
\nat iterate (/home/shobhit/nodebb/node_modules/async/lib/async.js:262:13)
\nat Object.async.forEachOfSeries.async.eachOfSeries (/home/shobhit/nodebb/node_modules/async/lib/async.js:281:9)
\nat Object.async.inject.async.foldl.async.reduce (/home/shobhit/nodebb/node_modules/async/lib/async.js:374:15)
\nat fireFilterHook (/home/shobhit/nodebb/src/plugins/hooks.js:128:9)
\nat Object.Plugins.fireHook (/home/shobhit/nodebb/src/plugins/hooks.js:109:5)
\nat ServerResponse.res.render (/home/shobhit/nodebb/src/middleware/render.js:30:12)
\nat /home/shobhit/nodebb/src/controllers/search.js:64:7
\nat /home/shobhit/nodebb/node_modules/async/lib/async.js:726:13
\nat /home/shobhit/nodebb/node_modules/async/lib/async.js:52:16
\nat done (/home/shobhit/nodebb/node_modules/async/lib/async.js:246:17)
\nat /home/shobhit/nodebb/node_modules/async/lib/async.js:44:16
\nat /home/shobhit/nodebb/node_modules/async/lib/async.js:723:17
\nat /home/shobhit/nodebb/node_modules/async/lib/async.js:167:37
\nat /home/shobhit/nodebb/node_modules/async/lib/async.js:52:16
\nat Immediate._onImmediate (/home/shobhit/nodebb/node_modules/async/lib/async.js:1206:34)
\nat processImmediate [as _immediateCallback] (timers.js:383:17)
\n12/7 05:55 [19377] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
\n12/7 05:55 [19377] - info: [app] Database connection closed.
\n12/7 05:55 [19377] - info: [app] Web server closed to connections.
\n12/7 05:55 [19377] - info: [app] Shutdown complete.
Thanks.
\nAlready got that worked.
I want to access all posts of a specific user using /api/---.
\n","uid":8742,"timestamp":1467889758523,"deleted":false,"upvotes":0,"downvotes":0,"replies":0,"votes":0,"timestampISO":"2016-07-07T11:09:18.523Z","user":{"uid":8742,"username":"shobhit","userslug":"shobhit","picture":"https://i.imgur.com/tmGbAAW.jpg","status":"offline","displayname":"shobhit","icon:text":"S","icon:bgColor":"#ff5722"},"topic":{"uid":8742,"tid":9163,"title":"get all posts for a specific user with API","cid":2,"tags":[],"slug":"9163/get-all-posts-for-a-specific-user-with-api","deleted":0,"scheduled":false,"postcount":3,"mainPid":52201,"teaserPid":"52237","timestamp":1467889758502,"titleRaw":"get all posts for a specific user with API","timestampISO":"2016-07-07T11:09:18.502Z","isQuestion":null,"isSolved":null},"category":{"cid":2,"name":"General Discussion","icon":"fa-comment","slug":"2/general-discussion","parentCid":0,"bgColor":"#ad4bbe","color":"#ffffff","backgroundImage":"","imageClass":""},"isMainPost":true}],"nextStart":20,"pagination":{"prev":{"page":1,"active":false},"next":{"page":1,"active":false},"first":{"page":1,"active":true},"last":{"page":1,"active":false},"rel":[],"pages":[],"currentPage":1,"pageCount":1},"noItemsFoundKey":"[[user:has-no-posts]]","title":"[[pages:account/posts, shobhit]]","breadcrumbs":[{"text":"[[global:home]]","url":"https://community.nodebb.org"},{"text":"shobhit","url":"https://community.nodebb.org//user/shobhit"},{"text":"[[global:posts]]"}],"showSort":false,"sortOptions":[{"url":"/user/shobhit/posts?sort=votes","name":"[[global:votes]]","selected":false},{"url":"/user/shobhit/posts?sort=posts","name":"[[global:posts]]","selected":false},{"url":"/user/shobhit/posts?sort=views","name":"[[global:views]]","selected":false},{"url":"/user/shobhit/posts?sort=lastpost","name":"[[global:lastpost]]","selected":false},{"url":"/user/shobhit/posts?sort=firstpost","name":"[[global:firstpost]]","selected":false}],"loggedIn":false,"loggedInUser":{"uid":0,"username":"[[global:guest]]","picture":"","icon:text":"?","icon:bgColor":"#aaa"},"relative_path":"","template":{"name":"account/posts","account/posts":true},"url":"/user/shobhit/posts","bodyClass":"page-user page-user-shobhit page-user-posts template-account-posts page-status-200 theme-harmony user-guest","_header":{"tags":{"meta":[{"name":"viewport","content":"width=device-width, initial-scale=1.0"},{"name":"content-type","content":"text/html; charset=UTF-8","noEscape":true},{"name":"apple-mobile-web-app-capable","content":"yes"},{"name":"mobile-web-app-capable","content":"yes"},{"property":"og:site_name","content":"NodeBB Community"},{"name":"msapplication-badge","content":"frequency=30; polling-uri=https://community.nodebb.org/sitemap.xml","noEscape":true},{"name":"theme-color","content":"#0471ff"},{"name":"keywords","content":"nodebb,forum,community,discussion,javascript,nodejs,mongodb,redis,websockets"},{"name":"msapplication-square150x150logo","content":"/assets/uploads/system/site-logo.png","noEscape":true},{"property":"og:image","content":"https://community.nodebb.org/assets/uploads/system/site-logo.png","noEscape":true},{"property":"og:image:url","content":"https://community.nodebb.org/assets/uploads/system/site-logo.png","noEscape":true},{"property":"og:image:width","content":"376"},{"property":"og:image:height","content":"132"},{"content":"NodeBB Community","property":"og:title"},{"content":"https://community.nodebb.org/api/user/shobhit/posts","property":"og:url"},{"content":"A community to talk about development and ask questions about NodeBB modern forum software","name":"description"},{"content":"A community to talk about development and ask questions about NodeBB modern forum software","property":"og:description"}],"link":[{"rel":"icon","type":"image/x-icon","href":"/assets/uploads/system/favicon.ico?v=af2f86gdel8"},{"rel":"manifest","href":"/manifest.webmanifest","crossorigin":"use-credentials"},{"rel":"search","type":"application/opensearchdescription+xml","title":"NodeBB Community","href":"/osd.xml"},{"rel":"apple-touch-icon","href":"/assets/uploads/system/touchicon-orig.png"},{"rel":"icon","sizes":"36x36","href":"/assets/uploads/system/touchicon-36.png"},{"rel":"icon","sizes":"48x48","href":"/assets/uploads/system/touchicon-48.png"},{"rel":"icon","sizes":"72x72","href":"/assets/uploads/system/touchicon-72.png"},{"rel":"icon","sizes":"96x96","href":"/assets/uploads/system/touchicon-96.png"},{"rel":"icon","sizes":"144x144","href":"/assets/uploads/system/touchicon-144.png"},{"rel":"icon","sizes":"192x192","href":"/assets/uploads/system/touchicon-192.png"},{"rel":"prefetch stylesheet","type":"","href":"/assets/plugins/nodebb-plugin-markdown/styles/github.css"},{"rel":"prefetch","href":"/assets/language/en-GB/markdown.json?v=af2f86gdel8"},{"rel":"prefetch","href":"/assets/src/modules/composer.js?v=af2f86gdel8"},{"rel":"prefetch","href":"/assets/src/modules/composer/uploads.js?v=af2f86gdel8"},{"rel":"prefetch","href":"/assets/src/modules/composer/drafts.js?v=af2f86gdel8"},{"rel":"prefetch","href":"/assets/src/modules/composer/tags.js?v=af2f86gdel8"},{"rel":"prefetch","href":"/assets/src/modules/composer/categoryList.js?v=af2f86gdel8"},{"rel":"prefetch","href":"/assets/src/modules/composer/resize.js?v=af2f86gdel8"},{"rel":"prefetch","href":"/assets/src/modules/composer/autocomplete.js?v=af2f86gdel8"},{"rel":"prefetch","href":"/assets/templates/composer.tpl?v=af2f86gdel8"},{"rel":"prefetch","href":"/assets/language/en-GB/topic.json?v=af2f86gdel8"},{"rel":"prefetch","href":"/assets/language/en-GB/modules.json?v=af2f86gdel8"},{"rel":"prefetch","href":"/assets/language/en-GB/tags.json?v=af2f86gdel8"},{"rel":"stylesheet","href":"https://community.nodebb.org/assets/plugins/nodebb-plugin-emoji/emoji/styles.css?v=af2f86gdel8"}]}},"widgets":{"footer":[{"html":"\r\n\r\n