Maxence Lange
6a690e64d4
hard coded table names
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-06-17 16:25:39 -01:00
Maxence Lange
37dd4f763e
more loggin
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-06-12 16:34:56 -01:00
Maxence Lange
db5ff4e09b
revert routes changes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-06-02 19:53:41 -01:00
Maxence Lange
42d077ea99
Merge pull request #551 from nextcloud/fixing-routes
...
fixing routes
2019-06-02 11:11:36 -01:00
Maxence Lange
5d8521797a
Merge pull request #563 from nextcloud/bugfix/558/pgsql-migration
...
avoid empty boolean value
2019-06-02 11:10:10 -01:00
Maxence Lange
3ebd8b8bd0
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-06-02 11:08:15 -01:00
Maxence Lange
d5f8f423af
cleaning.
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-06-02 10:43:18 -01:00
Maxence Lange
73321dc5b1
switching cc to text
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-06-02 10:38:13 -01:00
Maxence Lange
4f54b0cae5
avoid empty boolean value
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-06-02 09:23:04 -01:00
Maxence Lange
b13ade6938
catch duplicate
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-31 02:01:42 -01:00
Maxence Lange
a68c35e01f
multiple datetime fields
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-31 01:46:46 -01:00
Maxence Lange
a8e1ddc279
in case creation is empty
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-31 01:28:29 -01:00
Maxence Lange
f77883eb92
fixing routes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-30 17:06:48 -01:00
Maxence Lange
b53e5209ab
limit incoming/outgoing requests
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-30 14:04:15 -01:00
Maxence Lange
3afc2e9bfd
disable webfinger on full lock
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-30 12:42:44 -01:00
Maxence Lange
4a4dc5ea6d
adding command to manage access rights
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-30 12:42:20 -01:00
Maxence Lange
b8d1546be7
Merge pull request #546 from nextcloud/boosts
...
display boosted posts with an according indication
2019-05-29 22:44:02 -01:00
Maxence Lange
2dca0728e9
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-29 21:40:51 -01:00
Maxence Lange
dad67f6de0
Action on Cached Items
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-29 19:56:42 -01:00
Maxence Lange
a5d06e253a
imports
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-29 16:56:09 -01:00
Maxence Lange
8b9845787b
do not import SocialAppNotification from outside.
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-29 16:47:29 -01:00
Maxence Lange
13a03ee457
parse as Note if asked
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-29 16:47:09 -01:00
Maxence Lange
37f4d17815
default values in action
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
cached version of the post contains action.values
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
fixing default values
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-29 13:15:18 -01:00
Maxence Lange
169b4927e5
db fixes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-27 16:56:06 -01:00
Maxence Lange
4878aa05e9
also, try port 80 if 443 is not available
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-27 09:22:35 -01:00
Maxence Lange
e72748fa0d
allow self-signed certificate
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-27 09:19:54 -01:00
Maxence Lange
8b2f3a0def
issue with type on count
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-27 01:51:15 -01:00
Maxence Lange
1570dabe4d
more logs
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-26 23:14:07 -01:00
Maxence Lange
1937326498
more logs
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-23 09:05:23 -01:00
Maxence Lange
ae4ba193b8
add creation time on SocialAppNotification
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-18 00:07:09 -01:00
Maxence Lange
a9e46125cc
limit count to public post
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-18 00:03:23 -01:00
Maxence Lange
ecdf7e6cf6
+filterHiddenOnTimeline()
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-17 16:33:21 -01:00
Maxence Lange
cd4878ab02
small bugfixes during the follow process
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-17 13:33:35 -01:00
Maxence Lange
77af4db6b4
allow non-https
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-17 13:20:02 -01:00
Maxence Lange
ec822a440b
cleaning code
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-17 09:19:45 -01:00
Maxence Lange
d16537b403
Notes -> Stream
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-16 16:46:06 -01:00
Maxence Lange
4ab6b9cf6e
create missing id_prim
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-08 09:04:54 -01:00
Maxence Lange
7deb98642a
Refresh on the SQL migrations
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-08 08:02:34 -01:00
Maxence Lange
92a9ad6d54
add actor_info on getNoteById()
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-06 20:31:27 -01:00
Maxence Lange
0c27796d25
saveActivity() out of request();
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-06 18:45:20 -01:00
Maxence Lange
109680149a
+limitToType
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-06 18:45:09 -01:00
Maxence Lange
88a0d72740
fixing
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-06 18:44:12 -01:00
Maxence Lange
8174167e48
cleaning and renaming
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-06 13:32:31 -01:00
Maxence Lange
76997d0cd5
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-06 08:33:45 -01:00
Maxence Lange
9854c65e0a
cleaning/merging to master
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-06 07:29:07 -01:00
Maxence Lange
51b936e482
generate SocialAppNotification in stream database on new follower
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 20:56:47 -01:00
Maxence Lange
9541426701
fix phpdoc
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 20:54:14 -01:00
Maxence Lange
27a4785650
managing Notifications in the notification steam
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 20:54:14 -01:00
Maxence Lange
8d533988b8
cleaning code
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:31:15 -01:00
Maxence Lange
2d3bf90430
fixing some token issues
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:31:15 -01:00
Maxence Lange
9b0fcf7d70
fixing some token issues
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:31:15 -01:00
Maxence Lange
055aa5865a
init viewer on federated stream
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:31:15 -01:00
Maxence Lange
0f416c588b
add action field to everyone stream
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:31:15 -01:00
Maxence Lange
e70f67cea9
small fixes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:31:15 -01:00
Maxence Lange
9038dc4fb4
small fixes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:31:15 -01:00
Maxence Lange
51c2df3e7b
missing use
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:31:15 -01:00
Maxence Lange
2fb50cbefb
fix token creation
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:31:15 -01:00
Maxence Lange
47b2268021
generate token and cache content
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:31:15 -01:00
Maxence Lange
0f714cfda1
cleaning Actions
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:31:15 -01:00
Maxence Lange
a39d223535
fixing boost
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:31:15 -01:00
Maxence Lange
b4d773940c
Returns if a post is boosted, and allow unboost
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:31:15 -01:00
Maxence Lange
d25e5a680a
store actor of the Announce
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:30:39 -01:00
Maxence Lange
9a26da0266
fixing local creation
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-05-03 16:30:39 -01:00
Rik Meijer
0a9bd1fd61
Update DeleteInterface.php
...
Fix warning
2019-04-10 16:27:52 +02:00
Maxence Lange
26c2ec4081
Merge pull request #352 from nextcloud/feature/noid/attachments
...
Incoming Attachments.
2019-03-14 04:59:47 +01:00
Maxence Lange
dd2346d4a4
Merge pull request #453 from nextcloud/bugfix/noid/create-hashed-primary-keys
...
creating a new field id_prim, set as primary and fill it
2019-03-11 17:07:56 +01:00
Maxence Lange
ac656dacce
duplicate call
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-03-11 10:52:18 -01:00
Maxence Lange
39cd9704b8
force large field to 1000
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-03-06 11:57:30 -01:00
Maxence Lange
25de17dc5d
use hash(), set PrimaryKey after the hashing
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-03-05 20:23:28 -01:00
Maxence Lange
1bd6e3f44f
fixing & cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-03-05 16:25:08 -01:00
Maxence Lange
f74702f440
fitting migrations with new master
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-03-05 14:47:04 -01:00
Maxence Lange
a6ad99eed1
Merge branch 'master' into feature/noid/attachments
2019-03-05 14:11:16 -01:00
Maxence Lange
12d86ac5d2
generate id_prim on new insert
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-03-05 11:28:14 -01:00
Maxence Lange
e6e8c270a4
creating a new field id_prim, set as primary and fill it
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-03-05 11:12:40 -01:00
Maxence Lange
88f7a56aad
Merge pull request #439 from nextcloud/bugfix/438/enlarge-some-fields
...
Enlarge some fields
2019-03-05 08:16:11 -01:00
Maxence Lange
d565151374
Merge pull request #374 from nextcloud/feature/noid/announce
...
[huge] Announce object and caching during incoming request
2019-03-05 08:16:00 -01:00
Maxence Lange
c41e798b84
fixing undefined object
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-03-04 10:05:03 -01:00
Maxence Lange
d8824c1324
varchar(2000) -> varchar(1000)
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-28 09:12:33 -01:00
Maxence Lange
e30dafa100
varchar(2000) -> varchar(1000)
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-28 08:45:50 -01:00
Maxence Lange
d72c20ba9b
enlarge some fields
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-26 09:35:57 -01:00
Maxence Lange
d356e780aa
add default context object, in case cache is empty and website is down
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-24 20:55:35 -01:00
Maxence Lange
c200b083f0
Generating cache of context documents
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-23 21:27:29 -01:00
Maxence Lange
3c1def1d1c
fixing route/controller
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-22 23:17:33 -01:00
Maxence Lange
9ac8eb965b
boost creation
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-22 23:04:00 -01:00
Maxence Lange
0eb4faa37a
create object even if it can't be signed
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-22 09:33:55 -01:00
Maxence Lange
8a92d5680a
Merge branch 'master' into feature/noid/announce
2019-02-21 08:38:04 -01:00
Maxence Lange
6c93bd45e7
Merge branch 'master' into bugfix/noid/delete-notes-on-actor-delete
2019-02-20 19:56:06 -01:00
Julius Härtl
bc542a613f
Implement following a remote from the public pages
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-02-20 20:58:32 +01:00
Julius Härtl
5f0fa2cbc1
Implement frontend for ostatus popup
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-02-20 20:58:32 +01:00
Maxence Lange
910583e122
get link for remote to follow local account
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-20 20:55:35 +01:00
Maxence Lange
df1ad48a8d
get actor info from uri
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-20 20:55:35 +01:00
Maxence Lange
0257466aa1
fixing tag
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-20 20:55:35 +01:00
Maxence Lange
e3db064299
generate route
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-20 20:55:32 +01:00
Maxence Lange
4dbb6f68cd
call uuid() froom TStringTools;
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-12 10:43:16 -01:00
Maxence Lange
147e2800fa
Delete on Actor delete also Note from this Actor
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-11 10:01:06 -01:00
Maxence Lange
11303d6c35
fixing typo
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-07 16:59:10 -01:00
Maxence Lange
b4e9d51c6a
missing object_id field
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-06 08:27:48 -01:00
Julius Härtl
25dd9afe85
Limit search results to 25 for now
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-02-05 15:25:20 -01:00
Maxence Lange
20b8e0a51a
remove '#' from remote Notes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 15:25:20 -01:00
Julius Härtl
8c0c0bc5a3
Fix setting hashtags when creating a post
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-02-05 15:10:24 -01:00
Maxence Lange
5ddf8ee7c2
removing tag for debug purpose
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 15:10:24 -01:00
Maxence Lange
8cb56b0710
limit to viewable notes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 15:10:24 -01:00
Maxence Lange
6f3f8fb86d
add # if missing
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 15:10:24 -01:00
Maxence Lange
833d19617b
new Search endpoint
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 15:10:24 -01:00
Maxence Lange
3ef7737d14
fill the server_hashtags with hashtags and trends
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 15:10:24 -01:00
Maxence Lange
c7d1da1f53
get stream for hashtag
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 15:10:24 -01:00
Maxence Lange
47fa5d08f3
save hashtags and get from database
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 15:10:24 -01:00
Maxence Lange
cb7583c68c
validate tags (mention and hashtags) on incoming request
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 15:10:24 -01:00
Maxence Lange
01ed889984
adding hashtags on post creation
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 15:10:24 -01:00
Maxence Lange
f5da0c0e7e
tags -> hashtags
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 15:10:24 -01:00
Maxence Lange
a5427a35a9
add table 'server_tags', and field 'tags' in table 'server_notes'
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 15:10:24 -01:00
Maxence Lange
d195dc5878
removing CSRF tag from streamNotifications
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 16:21:03 +01:00
Maxence Lange
cca75bcb09
object returned in the stream
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 16:21:03 +01:00
Maxence Lange
86f8465695
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 16:21:03 +01:00
Maxence Lange
ac629503e9
fixing some field when generating the Announce in DB
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 16:21:03 +01:00
Maxence Lange
e830a82a45
Note and Announce should extends Model/Stream
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 16:21:03 +01:00
Maxence Lange
e6dbb363fd
activityId is saved in db for streamable objects
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 16:21:02 +01:00
Maxence Lange
0da74520d0
implementing caching for incoming request
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 16:21:02 +01:00
Maxence Lange
c0f304cd5b
cleaning and renaming upsteam request caching
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 16:21:02 +01:00
Maxence Lange
53b4137575
Follow moved from Activity -> Object
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 16:21:02 +01:00
Maxence Lange
7c94576585
Stream object
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 16:21:02 +01:00
Maxence Lange
e77f2f30cf
Model and Interface: Announce
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-05 16:20:59 +01:00
Maxence Lange
e8fd2c1d61
getUrlSocial would work on custom apps folder
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-02-01 09:21:22 -01:00
Maxence Lange
c20aaf1ad6
allow FOLLOWLOCATION
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-31 17:25:43 -01:00
Maxence Lange
ee81f3717c
varchar(255) -> varchar(2000)
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-30 15:41:06 -01:00
Maxence Lange
1486e6454a
Merge pull request #340 from nextcloud/feature/333/refresh-detail-cache-on-new-follows
...
Refresh some Actor details in cache on Follow events
2019-01-20 21:35:24 -01:00
Maxence Lange
ed6833d7af
rewrite and return attachments
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-19 11:14:38 -01:00
Maxence Lange
c28bcae44d
migrations
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-19 11:14:38 -01:00
Maxence Lange
145d748b03
saving document throw interface
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-19 11:14:38 -01:00
Maxence Lange
524c7aa141
save/update
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-19 11:14:38 -01:00
Maxence Lange
898993a67d
set primary
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-19 11:14:38 -01:00
Maxence Lange
d207a22f33
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-19 11:14:38 -01:00
Maxence Lange
5236dd4ae8
Image and document interfaces
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-19 11:14:38 -01:00
Maxence Lange
059711f28a
add attachment and parent_id field
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-19 11:14:38 -01:00
Maxence Lange
75feeaf24e
add attachment and parent_id
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-19 11:14:38 -01:00
Maxence Lange
c22724c0bb
enlarge some field in db
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-19 11:14:38 -01:00
Julius Härtl
4fdacb38dc
Merge pull request #335 from nextcloud/bugfix/330/add-context-on-actor
...
add w3 @context in actor
2019-01-19 12:50:20 +01:00
Julius Härtl
13d61f6507
Merge pull request #336 from nextcloud/feature/noid/not-json-exception-on-request
...
throw RequestResultNotJsonException on unusual result
2019-01-19 12:48:59 +01:00
Maxence Lange
83dc3bea01
Merge pull request #344 from emersonkfuri/emersonkfuri-patch-1
...
Failed to load more timeline entries
2019-01-18 09:03:20 -01:00
Emerson Kfuri
1713559ec9
Update CacheActorsRequest.php
...
Signed-off-by: emersonkfuri <emersonkfuri@gmail.com>
2019-01-17 15:49:39 -02:00
emersonkfuri
15ca69a6d0
Always use $account as local account (suppress @instance)
...
Signed-off-by: emersonkfuri <emersonkfuri@gmail.com>
2019-01-17 15:35:04 -02:00
Emerson Kfuri
b353704548
Update CacheActorsRequest.php
...
Signed-off-by: Emerson Kfuri <emersonkfuri@gmail.com>
2019-01-17 00:42:50 -02:00
Maxence Lange
7ab0a7f334
get_class in log
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-16 16:43:23 -01:00
Maxence Lange
754c9d761c
some fix
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-16 12:11:45 -01:00
Maxence Lange
4a6c8f12af
cache Actor on followed/unfollowed + following/unfollowing
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-16 12:06:20 -01:00
Maxence Lange
3a1ccc4c87
fixing var name
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-16 12:00:59 -01:00
Maxence Lange
5d48497717
+RequestResultNotJsonException
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-15 12:30:02 -01:00
Maxence Lange
daf473c9a0
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-15 12:29:14 -01:00
Maxence Lange
5890714307
add w3 @context in actor
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-15 09:35:06 -01:00
Maxence Lange
f4cd1310c0
signature can be 5min old
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-15 09:20:45 -01:00
Maxence Lange
9a8a736a49
check address of the account
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-09 15:09:09 +00:00
Maxence Lange
42f482fa34
Merge pull request #304 from nextcloud/bugfix/noid/compat-friendica
...
Compat friendica
2019-01-04 10:37:59 -01:00
Maxence Lange
89cd8fa88c
only valid base64
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-04 10:14:30 -01:00
Maxence Lange
721a060b48
add nonce to hash
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-04 09:34:57 -01:00
Maxence Lange
dc3bbe9652
set nonce
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-04 09:32:50 -01:00
Maxence Lange
a7e1c93361
enlarge size of public key
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-04 09:32:14 -01:00
Maxence Lange
3e9ca2f940
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-04 09:28:58 -01:00
Maxence Lange
4c013f149f
wait slightly longer
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-03 16:23:45 -01:00
Maxence Lange
487deb30db
detailled logs
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-03 16:23:23 -01:00
Maxence Lange
c9a2adafbb
there is no use to check twice
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-03 15:49:31 -01:00
Maxence Lange
a1410b7ed8
generate Id on Undo
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-03 10:37:02 -01:00
Maxence Lange
3e8694ff53
using AP object to generate items so UrlCloud is set by default
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-03 10:36:46 -01:00
Julius Härtl
f54b346bd0
Merge pull request #274 from nextcloud/feature/219/update-actor
...
Using signature date as 'creation' date
2019-01-03 11:55:34 +01:00
Maxence Lange
4d8c69671c
no need tor format()
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-03 09:22:22 -01:00
Maxence Lange
638e20d3fc
using signature date as 'creation' date
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-03 09:21:21 -01:00
Julius Härtl
6afde12932
Move follow/unfollow to store and rework account store handling
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-01-03 10:01:03 +01:00
Maxence Lange
dd30d98cac
refresh keys after 7 days
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-02 23:49:00 -01:00
Maxence Lange
43fc850c18
limit update to id
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-02 23:49:00 -01:00
Maxence Lange
88a19839c8
on signature check fail, update public key
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-02 23:49:00 -01:00
Maxence Lange
2f58b91408
update data instead of delete+save
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-01-02 23:48:34 -01:00
Julius Härtl
6b74286bd0
Merge pull request #283 from nextcloud/code/noid/rewrite-exception-on-request
...
[huge] rewrite of the exceptions while requesting remote instance
2019-01-02 23:31:23 +01:00
Julius Härtl
65dc245807
Merge pull request #275 from nextcloud/optimisation/noid/async-only-if-queued-request
...
check if there is standby request related to token
2019-01-02 18:08:04 +01:00
Julius Härtl
df289d46f4
Merge pull request #279 from nextcloud/bugfix/269/getinsecureserverhost
...
switch to getInsecureServerHost
2019-01-02 16:53:35 +01:00
Julius Härtl
9be2302834
Merge pull request #280 from nextcloud/bugfix/noid/delete-on-object-id
...
get item by Id and delete it
2019-01-02 16:51:49 +01:00
Julius Härtl
17e0e078b8
Merge pull request #281 from nextcloud/bugfix/noid/ending-slash-in-webfinger
...
removing trail slash in the id of the Person
2019-01-02 16:24:42 +01:00
Julius Härtl
6d4e8ff281
Merge pull request #284 from nextcloud/cleaning-291218
...
unused import
2019-01-02 16:23:45 +01:00
Maxence Lange
93938bbaa4
compare from a list
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-31 09:34:53 -01:00
Maxence Lange
59d1b578a9
unused import
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-29 13:21:52 -01:00
Maxence Lange
ed98204d47
rewrite of the exceptions while requesting remote instance
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-29 13:07:57 -01:00
Maxence Lange
c236a70c09
removing trail slash in the id of the Person
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-27 10:30:36 -01:00
Maxence Lange
918d595193
get item by Id and delete it
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-27 10:04:03 -01:00
Maxence Lange
7a7462bfe8
assuming the host is the address of the account
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-26 22:38:23 -01:00
Maxence Lange
89c8d9718b
validate host
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-26 22:33:46 -01:00
Maxence Lange
90f18ea621
switch to getInsecureServerHost
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-26 22:21:17 -01:00
Maxence Lange
02687476ff
check if there is standby request related to token
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-24 09:48:26 -01:00
Julius Härtl
1fd2905e37
Merge pull request #255 from nextcloud/bugfix/noid/htmlentity
...
htmlentities encode/decode
2018-12-21 17:41:30 +01:00
Maxence Lange
1570d9cd3d
content of note is validated only when imported from database
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-21 12:50:03 -01:00
Jan-Christoph Borchardt
588be2e4ff
Merge pull request #261 from nextcloud/bugfix/noid/nocsrfcheck
...
adding NoCSRFRequired to globalActorAvatar
2018-12-21 14:18:07 +01:00
Maxence Lange
fe8abe2db0
Merge pull request #256 from nextcloud/origin-check-final
...
checking origin of the object
2018-12-21 10:50:49 -01:00
Maxence Lange
dee7a6db7c
Merge pull request #217 from nextcloud/bugfix/207/revert-and-switch-to-text
...
varchar->text
2018-12-21 10:50:32 -01:00
Maxence Lange
b373bb0ffb
Merge pull request #254 from nextcloud/bugfix/noid/non-case-sensitive-checking
...
+strtolower()
2018-12-21 09:59:42 -01:00
Maxence Lange
20f01a24ef
adding NoCSRFRequired to globalActorAvatar
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-21 09:41:02 -01:00
Maxence Lange
f5579329ee
checking origin of the object
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-21 00:02:34 -01:00
Maxence Lange
7ba6beb745
htmlentities encode/decode
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 23:59:38 -01:00
Maxence Lange
5e0cb1f92d
changing field in 4 steps
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 21:35:13 -01:00
Jan-Christoph Borchardt
d334d117f7
Merge pull request #252 from nextcloud/bugfix/233/add-reset-command
...
./occ social:reset
2018-12-20 21:57:13 +01:00
Jan-Christoph Borchardt
2b43a077ce
Merge pull request #251 from nextcloud/clean/moving-signing-header
...
signed header generation moved to SignatureService
2018-12-20 21:55:45 +01:00
Maxence Lange
3906c391d5
+strtolower()
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 15:52:59 -01:00
Maxence Lange
b5b5690ab8
enabling sha512
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 15:51:09 -01:00
Maxence Lange
87629329f4
./occ social:reset
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 12:20:52 -01:00
Maxence Lange
df4fbf9589
oops, we're not sure the key exists.
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 11:43:08 -01:00
Maxence Lange
4bda4a242e
add algorithm="" to header - #238
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 11:40:34 -01:00
Maxence Lange
fb8e11a000
including the host
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 11:26:39 -01:00
Maxence Lange
2a41f1ea1d
signed header generation moved to SignatureService
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 11:22:48 -01:00
Roeland Jago Douma
b9f44777af
@NoSubAdminRequired is not needed
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-12-20 13:05:08 +01:00
Maxence Lange
a8fea82b23
Merge pull request #244 from nextcloud/cleanup/public-pages
...
Public page frontend fixes
2018-12-20 10:53:50 -01:00
Julius Härtl
e7e4ba2d60
Remove setCompleteDetails that is not required
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-12-20 11:50:59 +01:00
Julius Härtl
a951c01aff
Fix details for public viewers
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-12-20 11:34:44 +01:00
Julius Härtl
4253672fc1
Rework frontend controllers for page rendering
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-12-20 11:07:49 +01:00
Maxence Lange
c6943191f9
unused import
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-20 08:54:54 -01:00
Maxence Lange
80deaa8210
Merge branch 'master' into framework-import-process+activity
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-19 19:57:17 -01:00
Maxence Lange
35be62836f
checking if the account is a valid mail address
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-19 19:24:05 -01:00
Maxence Lange
b7e3a6dc2b
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-19 18:55:54 -01:00
Maxence Lange
a636ec03a3
set the source of the signature (header or ld-json signature)
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-19 16:50:17 -01:00
Maxence Lange
1dda85adaa
cleaning on moving post-merge
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-19 00:14:24 -01:00
Maxence Lange
37a889d978
Merge branch 'master' into framework-import-process+activity
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-19 00:13:33 -01:00
Julius Härtl
b89bb4945f
Merge pull request #206 from nextcloud/verify-and-sign-object-RDF-normalization
...
linked data signature
2018-12-18 20:31:03 +01:00
Maxence Lange
713806a0af
Unfollow will send a request to remote instance
2018-12-18 19:48:47 +01:00
Maxence Lange
7a3d006dab
Merge pull request #181 from nextcloud/notifications-stream
...
adding route and content to the Notification Stream
2018-12-18 17:47:01 -01:00
Maxence Lange
a493363a1a
fixing phpdoc
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-18 17:37:05 -01:00
Maxence Lange
99b404785e
Merge pull request #176 from nextcloud/cleaning-todo
...
Cleaning some TODO
2018-12-18 17:23:10 -01:00
Maxence Lange
a9f6a0add1
Merge pull request #196 from nextcloud/useless-value-while-communicate
...
Some data are only for internal use.
2018-12-18 17:12:47 -01:00
Maxence Lange
cc779e3d7c
the all activity is signed, not just the object.
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-18 18:46:39 +01:00
Maxence Lange
840326aab7
fixing replyTo and @context generation
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-18 18:46:39 +01:00
Maxence Lange
c470f7f6d1
Signing Object, adding Signature and @context entry
2018-12-18 18:46:39 +01:00
Maxence Lange
b99c3d4b67
VERIFY linked data signature
2018-12-18 18:46:38 +01:00
Maxence Lange
7a87a3c7ae
Merge pull request #197 from nextcloud/cleaning-followers-request
...
do not search for followers Id within the attributed_to field
2018-12-18 15:42:01 -01:00
Maxence Lange
cfc79e1e0f
Merge pull request #179 from nextcloud/fix-unlisted-post
...
Display on to:PUBLIC message
2018-12-18 15:41:21 -01:00
Maxence Lange
d803d77438
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-18 15:38:05 -01:00
Maxence Lange
428c14d37e
Merge branch 'master' into fill-follows-table
2018-12-18 15:24:51 -01:00
Maxence Lange
1ec6eb18cd
cleaning array_merge([])
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-18 15:21:05 -01:00
Maxence Lange
47c658c32b
bring back the request on new follow
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-17 09:54:28 -01:00
Maxence Lange
923bb732bd
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-17 09:54:16 -01:00
Maxence Lange
eefada0e39
checking that the returned Person is from the remote instance
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-17 09:48:24 -01:00
Maxence Lange
feb7728658
returns Person istead of Note
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-17 09:46:49 -01:00
Maxence Lange
0b23cff461
cleaning code
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-17 08:28:06 -01:00
Maxence Lange
b7e6609707
checking origin of actor when retrieving a remove account
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-17 08:25:15 -01:00
Maxence Lange
d923faabf3
cleaning code
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-17 08:24:42 -01:00
Maxence Lange
86f2029834
using cache instead
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-17 08:12:43 -01:00
Maxence Lange
a1f0ff0198
renaming services
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-17 08:12:27 -01:00
Maxence Lange
d028ab206c
init vars
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-17 08:06:03 -01:00
Maxence Lange
76775ddf28
static AP + interfaces
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-16 21:53:00 -01:00
Maxence Lange
7f2eede76b
moving stuff around
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2018-12-13 08:40:27 -01:00
Maxence Lange
62c24da769
Merge branch 'master' into fix-ghost-account
2018-12-12 11:10:22 -01:00
Maxence Lange
a7e644e7ac
Merge pull request #177 from nextcloud/async-only-if-valid-requests
...
Async the process only if there is request in STANDBY
2018-12-12 10:19:30 -01:00
Maxence Lange
dce5299325
sizeof() -> empty()
2018-12-12 10:04:11 -01:00
Maxence Lange
63d6a1c384
add some logs
2018-12-12 09:46:46 -01:00
Maxence Lange
c1e387c08f
varchar->text
2018-12-12 08:50:54 -01:00
Maxence Lange
2c7cdcb702
include the getAccount within the try/catch
2018-12-12 08:44:13 -01:00
Maxence Lange
1761c3988f
Merge branch 'master' into bigger-field-for-source
2018-12-10 20:14:18 -01:00