10022 Commits (d5ece9a4c3e0893d3734fbda9d24a61e522d4dfb)

Author SHA1 Message Date
Barış Soner Uşaklı 7524d3c33b fix: generate timeago codes from files 6 years ago
Julian Lam 2b9322e1c2 feat: additional options for SSO plugins
+checkState property, pass Boolean false to skip nonce checking
+callbackMethod, default 'get', you can pass in 'post', etc.
6 years ago
Barış Soner Uşaklı ed5d2d6d15 feat: get rid of disk access 6 years ago
Julian Lam c831ff0de3
fix: removal of timeago fallback middleware (#7259)
* fix: removal of timeago fallback middleware

Instead of loading English fallback on missing language, we opt
to not send a script tag for a missing language to begin with.

Timeago already loads with English as default, so it will just
continue to use English.

* fix: check userLang against supported language codes

* fix: cleaned up code as per @pitaj

* fix: added comments

* fix: more fixes as per @pitaj

* feat: added addl. test for timeago locales, fixed broken test
6 years ago
Baris Usakli c14dbfc6b7 attempt to fix tests 6 years ago
Baris Usakli 65f6630722 add new hook action:plugins.firehook 6 years ago
Barış Soner Uşaklı ac655564bb fix: post queue notifs
fix moderators not showing up immediately when adding them
6 years ago
Peter Jaszkowiak e1ca2d81f9 refactor: use loash when possible (#7230) 6 years ago
Barış Soner Uşaklı 9328eeca95 fix: escape hook method 6 years ago
Barış Soner Uşaklı 428f587cbe fix: #7208 7 years ago
Barış Soner Uşaklı a662f118a5 fix: #7054 7 years ago
Barış Soner Uşaklı b9833483ca fix: #7209 7 years ago
Julian Lam 70a87d4399
feat: support for one-click unsubscribe from email clients (#7203)
* feat: sending notifs via ACP creates real notification

re: #7202

* feat: basic integration for one-click unsubscription #7202

* feat: tests for #7202 + bugfix

* feat: added and organized digest unsub tests

closes #7202
7 years ago
Baris Usakli 1a3838e13c fix: missing notification 7 years ago
Baris Usakli 7809ba2800 fix: #7193, closes #7194 7 years ago
Julian Lam 0263b4daec
feat: added new hook `static:sockets.validateSession` (#7189)
* feat: added new hook

* fix: improper .bind() call, +req in static:sockets.validateSession

* fix: restored original sessionStore logic, +hook

original logic to retrieve the sessionStore was not faulty, but
was changed for the sake of changing things, which ultimately
led to issues with tests, etc.
7 years ago
Barış Soner Uşaklı 6f1fb4eb24 fix: #https://github.com/barisusakli/nodebb-plugin-dbsearch/issues/49 7 years ago
Barış Soner Uşaklı 28459d04c6 fix: #7187 7 years ago
Baris Usakli 9aa1aa689d fix: #7174
always pass string in service
7 years ago
Baris Usakli 934e1854d3 remove unnecessary escape 7 years ago
Baris Usakli 0d409610c4 fix: #7181 7 years ago
Julian Lam b0eaa858b5 fix: #7169 Fixed logout being broken 7 years ago
Barış Soner Uşaklı 72afc1806e fix: uid filtering 7 years ago
Barış Soner Uşaklı 41fb5cca81 fix: dont crash if default cover is invalid 7 years ago
Julian Lam d81e0a5f5b fix: #7146 Better RTL handling on (de-)authentication
- RTL is applied (or unapplied) on login and logout depending on
  user language/guest-detected language.
- config is automatically saved into res.locals.config whenever
  loadConfig is called
- On login/logout, buildHeader is called instead of getting config
- On logout, req.uid is deleted instead of set to 0
7 years ago
Julian Lam 900f0a0b78 fix: #7118, invoking autoLocale middleware on logout
Also:
- firing client-side hook on header update
- updating bootbox locale on header update
7 years ago
Barış Soner Uşaklı 3917022a48 fix: #7139 7 years ago
Barış Soner Uşaklı 7e828404f6 fix: #7116
dont save relative_path in db for group covers
7 years ago
Baris Usakli f4ea2c43ab feat: #7120 7 years ago
Baris Usakli 0c1ac4d6a2 feat: #7032 7 years ago
Barış Soner Uşaklı d31684e8b8 fix: #7131 7 years ago
Barış Soner Uşaklı fef7e13c9e feat: small fixes 7 years ago
Barış Soner Uşaklı b2a74b4172 fix: remove cache 7 years ago
Barış Soner Uşaklı b9b9d8b2e9 feat: name topic controller 7 years ago
Barış Soner Uşaklı 0cb9bba4da feat: header 7 years ago
Barış Soner Uşaklı 60390c01f1 fix: loop 7 years ago
Barış Soner Uşaklı ae0fe5e880 feat: more naming 7 years ago
Barış Soner Uşaklı f88db22ca2 feat: give the rest of the middlewares names 7 years ago
Barış Soner Uşaklı fdfbcc6efe feat: give names to more middlewares 7 years ago
Barış Soner Uşaklı 53793e1603 feat: give names to middlewares 7 years ago
Barış Soner Uşaklı 4650a76036 fix: #7124 7 years ago
Barış Soner Uşaklı 9f5062682d fix: unread badge
- only increase unread badge if topic or category is watched
- fix logic for "there are new posts/topics" on /unread and /recent
7 years ago
Barış Soner Uşaklı d2c2d56f59 feat: change sortedSetsScore 7 years ago
Barış Soner Uşaklı 99e0895e99 fix: move the check to get methods
all .post methods will have csrf
7 years ago
Julian Lam fbe6ccd773 style: lint fix 7 years ago
Barış Soner Uşaklı 989879a6b5 fix: #7115 7 years ago
Barış Soner Uşaklı 14c4552304 dont modify session for spiders 7 years ago
Barış Soner Uşaklı 29b63ae7fb fix: #6979 7 years ago
Barış Soner Uşaklı 0eef3e1c27 fix: upgrade script key 7 years ago
Barış Soner Uşaklı 00afc5b3ab fix: remove log 7 years ago
Barış Soner Uşaklı eb7ae54f81
Category watch state (#7109)
* feat: wip, category watch change

* feat: pass data to client

* feat: allow changing state

* fix: account page categories

* fix: show in unread if topic is followed or category is watched

* feat: add default watch state to acp

* feat: save user category watch state

* feat: update unread recent pages

* fix: remove dupe code

* fix: flip conditions

* fix: handle empty arrays

* fix: ignore/watch on others profile

* feat: upgrade script for category states

if there are any users ignoring categories set their state in new zset and delete cid:<cid>:ignorers

* fix: upgrade

* fix: tests

* fix: redis count

* fix: more tests
7 years ago
Ben Lubar ff5b04beb9 Log port number of current instance in addition to pid. (#7110) 7 years ago
Barış Soner Uşaklı 8169739069 fix: #7108 7 years ago
Barış Soner Uşaklı 62f01a839e fix: dont save data for non-positive uids 7 years ago
Barış Soner Uşaklı f103390aa5 fix: #7103
update counter when user navigates to /unread
fix new topic alert on /unread
moved unread code from footer to unread
7 years ago
Barış Soner Uşaklı 2f57a4b9a6 fix: dont update cid:<cid>:tids:votes if topic is pinned 7 years ago
Barış Soner Uşaklı d117df77f7 fix: #7102 7 years ago
Barış Soner Uşaklı 85a07e999b fix: #7102 7 years ago
Barış Soner Uşaklı 263c918088
feat: remove uid:<uid>:ignored:cids (#7099)
use cid:<cid>:ignorers instead
7 years ago
Barış Soner Uşaklı 26ccd8f626 fix: db info page
if there is no connection to db, connect first
7 years ago
Barış Soner Uşaklı a0f57c642c Merge branch 'master' of https://github.com/NodeBB/NodeBB 7 years ago
Barış Soner Uşaklı a6c8e0ab4f fix: logAttempt conditional 7 years ago
Julian Lam 33d4956b76 fix: #7087, server-side protection against guest blocks 7 years ago
Barış Soner Uşaklı 78fa734017 feat: cache category tag whitelist 7 years ago
Barış Soner Uşaklı 81aa3a0b8a fix: don't crash in flags.validate if user blocked target 7 years ago
Barış Soner Uşaklı fe0f95a2b1 fix: #7085 7 years ago
Barış Soner Uşaklı e55fb43703 fix: #7086 7 years ago
Barış Soner Uşaklı 71163421aa fix: wrong variable #7085 7 years ago
Baris Usakli df4f8cee4b remove node 6 7 years ago
Baris Usakli e65d40c937 dont return undefined from sortedSetsCard if keys is empty or falsy 7 years ago
Baris Usakli 420227faae parseFloat scores 7 years ago
Julian Lam 4fba1492c1 feat: added new middleware authenticateOrGuest 7 years ago
Julian Lam eeaee8ccef fix: not calling authenticate middleware on resource direct access
routes
7 years ago
Julian Lam 5f3d1c76c8
fix: #7038, autoLocale logic not playing nicely with no-refresh auths (#7059)
* fix: #7038, autoLocale logic not playing nicely with no-refresh auths

- on login, req.query.lang is deleted (since it seems to be left over)
- on logout, the middleware.autoLocale is executed, which resets
  req.query.lang
- middleware.autoLocale is new, just refactored existing logic in
  webserver.js into new middleware method.

* style: tests, use lodash

* fix: timeago strings not switching languages on login or out
7 years ago
Julian Lam a07d9898df fix: #7071 buildSkinAsset won't rebuild continuously 7 years ago
Barış Soner Uşaklı 7ca62b8399 feat: closes #7070 7 years ago
Baris Usakli 96c1dc6276 unescape email subject 7 years ago
Baris Usakli eab297bdc9 fix: #7061 7 years ago
oh d7c55bc3f7 feat(email): don't escape html in notification bodies. (#7042)
allows for post replies, etc. to show the formatting of the orginal 
post, rather than looking garbled.

closes #7034
7 years ago
Baris Usakli d3c6cba33f closes #7060 7 years ago
Baris Usakli 67ac8e3d06 closes #7053 7 years ago
Barış Soner Uşaklı 54c127d1b2 feat: allow array results 7 years ago
Barış Soner Uşaklı f581c052ee feat: #7023
- add category selector to privileges and category create modals
- allow category selector to work for multiple selectors on same page
7 years ago
Barış Soner Uşaklı a63ddbe2aa fix: #7040
if category doesn't exist return null and 404
7 years ago
Barış Soner Uşaklı ec0c50d4e0 fix: #7041 7 years ago
Barış Soner Uşaklı 8d7c3897f2 fix: #7043 7 years ago
Barış Soner Uşaklı cb7c2d8c28 fix: add missing render function 7 years ago
Barış Soner Uşaklı 1f918ca8f8
Home route (#7039)
* fix: WIP home fix

* remove console.log

* fix: #6949

on redis run all tests in subfolder /forum
fix URI errors
fix sping/ping
7 years ago
Baris Usakli 8808a03307 fix: #7033 7 years ago
Baris Usakli b86f155690 fix: #7037 7 years ago
Peter Jaszkowiak ba619c7ec8 style(eslint): match operator-linebreak preferences 7 years ago
Peter Jaszkowiak 89c025d102 feat: close #7002, console message if mismatched origins 7 years ago
Peter Jaszkowiak 43c3bb02e5 fix: #6991, add timeout for version Github request 7 years ago
Baris Usakli 33d7735690 change deprecated message 7 years ago
SweetPPro dab1a1d638 fix for null category (#7029) 7 years ago
Barış Soner Uşaklı 29e9310aa5 dont crash for undefined categories 7 years ago
Barış Soner Uşaklı 6330d51446 less derpy output 7 years ago
Barış Soner Uşaklı ed1bf9a16f add more info to advanced db page 7 years ago
Barış Soner Uşaklı 4b486a808e fix custom home 7 years ago
Barış Soner Uşaklı 2c5e38d8f1 closes #7004
do not translate email subjects twice, emailer already translates the passed in subject param
7 years ago