chylex
b9c807ff63
Add article word count to JSON
...
Signed-off-by: chylex <contact@chylex.com >
2022-05-28 08:53:40 +02:00
Benjamin Brahmer and Sean Molenaar
0fb620244d
check if variable is null before striping tags
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de >
Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com >
2022-05-04 18:14:37 +02:00
Benjamin Brahmer
5af0cb6e22
update last_modified when marking an item as read
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de >
this way it works
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de >
add changelog entry
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de >
Partly fix test
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de >
test passing
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de >
2022-05-02 09:56:12 +02:00
Benjamin Brahmer
c49e0fb4f4
rename maxItemId to newestItemId to match docs
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de >
2022-03-18 11:54:02 +01:00
Benjamin Brahmer
f0a1c92502
Fix code style
...
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de >
2021-11-18 14:10:57 +01:00
Sean Molenaar and Benjamin Brahmer
a52eee5671
chore: use executeStatement instead of executeUpdate
...
Signed-off-by: Sean Molenaar sean@seanmolenaar.eu
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de >
2021-11-18 14:10:57 +01:00
Marco Nassabain and Benjamin Brahmer
b5186b01f1
🚑 Item: set id to null in clone function
...
This is done to set the id to null BEFORE resetting the updated fields.
The purpose of this is to avoid explicitly adding a NULL id into the DB,
which provokes an error in some DBMS (like postgres).
Fixes #1375
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-06-16 11:31:11 +02:00
Sean Molenaar and Benjamin Brahmer
74f09ee716
db: no longer order by items.last_modified
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu >
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de >
2021-05-27 19:12:55 +02:00
Sean Molenaar and Sean Molenaar
111bf5fff2
DB: only sort on item IDs
...
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu >
2021-04-14 13:56:54 +02:00
Marco Nassabain and Sean Molenaar
96846e1266
🔥 Remove changes to back-end from front-end pr
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 23:17:31 +02:00
Jimmy Huynh and Sean Molenaar
4a9a4cf0d2
(+) Adding sharing_user names to EVERY articles + pre-condition if sharedArticle: no title feed (e.g.: from wikiRSS...)
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 23:17:31 +02:00
Marco Nassabain and Sean Molenaar
bf85a5883a
🩹 Item: change $sharedBy to string|null in annot.
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
413c4b8914
🩹 Fix sharedByDisplayName bug:
...
- setting sharedByDisplayName shouldn't mark it as updated
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
bbdd95c30d
🔥 Remove UserManager code from ItemMapper & tests
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
4d0a82d429
✏️ Fix phpcs indentation error
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
c2c92a3f5a
🩹 Fix issues after rebase
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
276460a240
🩹 Item: mark categoriesJson as updated in clone
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
7306370ece
✨ Item: add sharer display name in findEntities
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
8674d558fc
✨ Update Item model: add sharedByDisplayName
...
- added field + setters + getters
- include field in serialized Item
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
b0c42e4cd7
♻️ Item: Remove isShared
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
2cba1e4146
🧹 Cleanup code, remove spaces, rename variables
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
e5d439ee7e
🚑 Fix newsItem insert error
...
- add Item::__clone method resetting updated fields
- set item id to null in ShareService
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
e96d7c9b1e
🎨 Item.php: make shared_by nullable
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
6a6f89ff94
🎨 Item.php: Remove shared_with
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
9bd27da9ba
🔥 Remove old share item logic & functions
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
WENDLING NICOLAS and Sean Molenaar
f6014567f3
🗑 '!=' is discouraged, replaced by '!=='
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
WENDLING NICOLAS and Sean Molenaar
a9863ec5f7
🗑 '!=' is discouraged, replaced by '!=='
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
af02560363
🎨 ItemMapperV2: add new offset code (findShared)
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
88fc165f49
🔥 Remove old ItemMapper & ItemService
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
df8680b14a
🩹 Remove traces of feed_id being nullable
...
- feed_id is not nullable so we remove default values
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
08982fc540
✨ Add findAllSharedAfter
...
- adapted Controller, Service and Mapper (newItems)
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
1f0924fb57
✨ ItemMapperV2: exclude shared items in functions
...
updated the following functions to exclude shared_items:
- findAllInFeedAfter
- findAllInFolderAfter
- findAllFeed
- findAllFolder
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
26ae92bc7b
✨ ItemMapperV2: include shared in functions
...
updated the following functions to include shared items:
- findFromUser
- findForUserByGuidHash
- readAll
- findAllAfter
- findAllItems
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
83bdbc08a0
✨ ItemMapperV2: include shared in functions
...
updated the following functions to include shared items:
- findAllFromUser
- newest
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
c3cc70b15e
✨ ItemMapperV2: added findAllSharedWithUser funct
...
- return all items shared with a given user
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
237363e087
💡 Added comments to ItemMapper share fncts
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
ec5ae1a90a
🩹 ItemMapper->deleteUser: include shared items
...
- deletes items shared with a user
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
15dedf0ceb
🩹 Patch getNewestItemId: include shared articles
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
11bd056bdf
🩹 Patch readAll: concerns items shared with user
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
c640740444
🐛 Fix readAll: cannot read items we shared
...
- A shared item is still in our feed, but it's not ours to read
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
b27226d4ae
🚑 Fix bug - other user feeds show for shared item
...
- findAllFeeds doesn't return feeds of shared articles
- Disable feed cache handling for shared items
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
e78153c051
✨ Sharing: update ownership in sql (sharedwith)
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Aurélien and Sean Molenaar
5f69c256e3
Add function for avoid duplicate item (share)
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
f3c4d744c0
🐛 Share Item: feed_id not nullable, copy feed_id
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Jimmy Huynh and Sean Molenaar
98d72bac54
(*) fix: item Model
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Jimmy Huynh and Sean Molenaar
4294842a00
(*) fix: item Model
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Jimmy Huynh and Sean Molenaar
b402fddef9
(+) Adding sharing_user names to EVERY articles + pre-condition if sharedArticle: no title feed (e.g.: from wikiRSS...)
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
785aaf6929
🐛 sharedCount: fix sql statement bug 1 => 1
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
WENDLING NICOLAS and Sean Molenaar
ca2b8c6566
✨ Add count for unread items
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00
Marco Nassabain and Sean Molenaar
5fc486a84f
🔥 shareItem: set unread = true for shared article
...
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com >
2021-04-08 22:31:21 +02:00