Barış Soner Uşaklı
c0c6c652be
feat: #7743 , finish post module
2019-07-17 19:05:55 -04:00
Barış Soner Uşaklı
805dcd7ca2
Async refactor in place ( #7736 )
...
* feat: allow both callback&and await
* feat: ignore async key
* feat: callbackify and promisify in same file
* Revert "feat: callbackify and promisify in same file"
This reverts commit cea206a9b8 .
* feat: no need to store .callbackify
* feat: change getTopics to async
* feat: remove .async
* fix: byScore
* feat: rewrite topics/index and social with async/await
* fix: rewrite topics/data.js
fix issue with async.waterfall, only pass result if its not undefined
* feat: add callbackify to redis/psql
* feat: psql use await
* fix: redis 🌋
* feat: less returns
* feat: more await rewrite
* fix: redis tests
* feat: convert sortedSetAdd
rewrite psql transaction to async/await
* feat: 🐶
* feat: test
* feat: log client and query
* feat: log bind
* feat: more logs
* feat: more logs
* feat: check perform
* feat: dont callbackify transaction
* feat: remove logs
* fix: main functions
* feat: more logs
* fix: increment
* fix: rename
* feat: remove cls
* fix: remove console.log
* feat: add deprecation message to .async usage
* feat: update more dbal methods
* fix: redis :voodoo:
* feat: fix redis zrem, convert setObject
* feat: upgrade getObject methods
* fix: psql getObjectField
* fix: redis tests
* feat: getObjectKeys
* feat: getObjectValues
* feat: isObjectField
* fix: add missing return
* feat: delObjectField
* feat: incrObjectField
* fix: add missing await
* feat: remove exposed helpers
* feat: list methods
* feat: flush/empty
* feat: delete
* fix: redis delete all
* feat: get/set
* feat: incr/rename
* feat: type
* feat: expire
* feat: setAdd
* feat: setRemove
* feat: isSetMember
* feat: getSetMembers
* feat: setCount, setRemoveRandom
* feat: zcard,zcount
* feat: sortedSetRank
* feat: isSortedSetMember
* feat: zincrby
* feat: sortedSetLex
* feat: processSortedSet
* fix: add mising await
* feat: debug psql
* fix: psql test
* fix: test
* fix: another test
* fix: test fix
* fix: psql tests
* feat: remove logs
* feat: user arrow func
use builtin async promises
* feat: topic bookmarks
* feat: topic.delete
* feat: topic.restore
* feat: topics.purge
* feat: merge
* feat: suggested
* feat: topics/user.js
* feat: topics modules
* feat: topics/follow
* fix: deprecation msg
* feat: fork
* feat: topics/posts
* feat: sorted/recent
* feat: topic/teaser
* feat: topics/tools
* feat: topics/unread
* feat: add back node versions
disable deprecation notice
wrap async controllers in try/catch
* feat: use db directly
* feat: promisify in place
* fix: redis/psql
* feat: deprecation message
logs for psql
* feat: more logs
* feat: more logs
* feat: logs again
* feat: more logs
* fix: call release
* feat: restore travis, remove logs
* fix: loops
* feat: remove .async. usage
2019-07-09 12:46:49 -04:00
Julian Lam
3ec9fc4098
fix : #7490 once again
2019-03-27 23:52:13 -04:00
Julian Lam
86e1cdd541
fix : #7490 , handling of image sizes if no size saved in db
2019-03-27 16:44:39 -04:00
Julian Lam
697a6597f3
fix : #7444 Re-factor handling of og:image tags ( #7463 )
...
* fix: display proper site logo or og-image with sizes in head
* fix: refactor og:image logic, #7444
- Updated logic to set additional og:image tags based on more
factors
- logo.png fallback
* feat: save image sizes on post upload, re: #7444
* fix: awaiting addTags in topic controller
* fix: pass strings to meta tags object
* fix: sending absolute image url to meta tag
* fix: removed unneeded async and requiring sync db
* feat: upgrade to calculate image sizes for all post uploads tracked
* fix: tests
2019-03-18 12:09:10 -04:00
Barış Soner Uşaklı
cba5aa975e
return early if there are no files
2018-05-19 12:58:04 -04:00
Barış Soner Uşaklı
619b74ca7b
move regex out
2018-05-18 17:28:54 -04:00
Barış Soner Uşaklı
96d2980472
fix updrade error if file is not found closes #6485
2018-05-03 16:06:56 -04:00
Julian Lam
1f1e055509
updated post association code to only associate files that exist, closes #6455
2018-04-17 13:31:54 -04:00
Julian Lam
388765bdf9
added post usage column to uploads ACP page
...
re: #6455
2018-04-17 11:25:11 -04:00
Julian Lam
0f13ae3c87
added isOrphan method, #6455
2018-04-16 16:44:17 -04:00
Julian Lam
2e125293e6
save reverse association of md5 of upload to pid, #6455
2018-04-16 16:22:20 -04:00
Julian Lam
d25ab31427
proper handling of extensionless files
2018-04-16 15:36:59 -04:00
Julian Lam
850f59a1ae
additional functionality, integration, and testing for #6455
2018-04-16 15:21:48 -04:00
Julian Lam
5943389b7a
tests for #6455
2018-04-16 12:46:25 -04:00
Julian Lam
551daa141b
basic methods for #6455
2018-04-13 16:12:11 -04:00