Carl Schwan
637924a13f
Port away from private OC::$server->get
...
And fix a few psalm issues
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-11 18:22:54 +02:00
Carl Schwan
293f028a19
Merge pull request #1330 from stefan123t/master
...
fix #1129 empty only existing tables in emptyAll()
2022-05-09 13:03:00 +02:00
Carl Schwan
8bc648a972
Fix JrdResponse not containing template
...
For now this is modified JrdResponse from
https://github.com/nextcloud/server/pull/26178
Let's hope that we can switch to the OCP one in NC 25
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-21 14:25:54 +02:00
Carl Schwan
c3acc08f41
Add more ci jobs
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-15 19:39:11 +02:00
Carl Schwan
39f7243857
Fix not being able to post new messages
...
The flag for json_encode was wrongly positioned due to some issue with
the paranteses.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-15 19:20:00 +02:00
Carl Schwan
46df90a0fb
Add psalm static analysis
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-15 17:40:33 +02:00
Carl Schwan
9e20993c4d
Php cs:fix
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-15 13:35:51 +02:00
Carl Schwan
be80ca5d0f
Update to php 7.4 type hinting
...
Using rector
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-15 13:02:31 +02:00
Carl Schwan
b4006e7ac2
Make wellknow work with new infra
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-14 21:44:44 +02:00
Carl Schwan
de8879f856
Make social app compatible with 24
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-14 15:56:20 +02:00
stefan123t
17666a5f74
fix #1129 empty only existing tables in emptyAll()
2021-11-23 07:58:29 +01:00
Maxence Lange
250be300bd
minimum elements for headers
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2021-03-18 18:34:07 -01:00
Maxence Lange
bbe59a942a
check content-length and digest
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2021-03-18 18:10:48 -01:00
Nikolai Merinov
e577395e40
Allow to follow to PeerTube 3.0.0 users
...
Solved three issues:
* lib/Service/ConfigService.php: With "Accept: application/json" PeerTube
returns user page in HTML format. Replace header with
"Accept: application/ld+json".
* lib/Service/CurlService.php: Do not broke "$host" variable if host-meta
resultion failed.
* lib/Service/SignatureService.php: POST to https://framatube.org/accounts/fsf/inbox
ends with error "(request-target) was not a signed header". Added
(request-target) to signature.
Signed-off-by: Nikolai Merinov <nikolai.merinov@member.fsf.org>
2021-01-10 04:00:01 -05:00
Maxence Lange
c9afc0c104
Merge pull request #1136 from mnd/support-unquoted-signature
...
Support unquoted fields in Signature header
2020-12-02 22:30:31 -01:00
Maxence Lange
45a1f2138c
Merge pull request #1138 from mnd/activitystream-vocabulary
...
Support all Actor types from Activity Vocabulary
2020-12-02 22:28:07 -01:00
Maxence Lange
279d43638c
Merge pull request #1090 from nextcloud/mastadon-api-fixes
...
Mastadon api fixes
2020-12-02 20:50:41 -01:00
Maxence Lange
6866088431
using TNC20Request
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-11-30 23:58:32 -01:00
Nikolai Merinov
3722af564b
Support all Actor types from Activity Vocabulary
...
Support all types from https://www.w3.org/TR/2017/REC-activitystreams-vocabulary-20170523/
Signed-off-by: Nikolai Merinov <nikolai.merinov@member.fsf.org>
2020-11-23 01:52:04 -05:00
Nikolai Merinov
7e5b4b2881
Support unquoted fields in Signature header
...
Signed-off-by: Nikolai Merinov <nikolai.merinov@member.fsf.org>
2020-11-22 11:20:20 -05:00
Robin Appelman
8c070ee248
add public timeline for mastodon api
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-22 15:01:37 +02:00
Robin Appelman
d045973449
add reblog content to mastadon api
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-21 17:55:00 +02:00
Robin Appelman
dc5d89fe5c
expose isLocal trough api
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-19 18:50:26 +02:00
Robin Appelman
dd9ed2f972
set reblogged and favorited in mastadon api
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-19 18:25:06 +02:00
Robin Appelman
cd86386bff
use the correct value for `account.acct`
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-19 18:25:06 +02:00
Robin Appelman
f8e55b158c
allow setting min and max id in timeline request
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-19 18:25:06 +02:00
Robin Appelman
173b768038
preserve html in content
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-19 18:25:06 +02:00
Maxence Lange
9d2e5c5d74
delete id_prim pkey is needed
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-10-16 15:29:42 -01:00
Robin Appelman
2fb4f95f39
fix unfollow
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-14 13:23:32 +02:00
Maxence Lange
25cb4f5b8f
Merge pull request #1072 from nextcloud/search-nc20
...
Search for nc20
2020-10-14 09:16:59 -01:00
Maxence Lange
9edfc83a8f
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-10-13 23:51:41 +02:00
Maxence Lange
de67f15f6d
display avatar
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-10-13 16:51:56 -01:00
Maxence Lange
b56d4fe24b
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-10-13 12:45:38 -01:00
Maxence Lange
d3bd428737
search compat nc20
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-10-13 12:44:19 -01:00
Maxence Lange
e6a6fe7b77
Merge pull request #1054 from nextcloud/self-profile-show-all
...
show all activity when viewing your own profile, not just public acti…
2020-10-11 23:35:14 -01:00
Maxence Lange
931c1d8ba8
using hasViewer()
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-10-11 23:34:31 -01:00
Maxence Lange
5de193fc22
Merge pull request #1052 from nextcloud/vendor-dir
...
use default composer vendor directory
2020-10-11 15:13:47 -01:00
Maxence Lange
b131dbe093
fix url being unique
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-10-11 10:48:41 -01:00
Robin Appelman
1f7b24d0f2
show all activity when viewing your own profile, not just public activity
...
some more fine grained checks should be added later but this at least prevents 'you haven't tooted yet' from showing when you have tooted
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-09 16:13:08 +02:00
Robin Appelman
67a719890e
use default composer vendor directory
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-09 15:10:46 +02:00
Robin Appelman
6b11aa717c
Merge pull request #243 from nextcloud/tests/cypress
...
Add cypress testing
2020-10-08 12:06:48 +00:00
Robin Appelman
b9d2648f0a
fix well-known autoloader paths
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-02 17:21:46 +02:00
Robin Appelman
f77cf749c0
remove duplicate primary key
...
since autoincrement automatically becomes the primary key on most(?) databases, we can't set another one
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-01 17:32:23 +02:00
Robin Appelman
6d75921856
fix migration by allowing null values for 'nid'
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-09-24 16:59:44 +02:00
Maxence Lange
67e4dcf8a0
comment until WellKnownNManager is available
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-09-24 11:39:18 -01:00
Maxence Lange
6d9afed842
compat nc20
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-09-24 11:32:55 -01:00
Maxence Lange
888d993141
using IWebfingerManager
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-09-23 11:41:28 -01:00
Maxence Lange
261b7c7003
Merge pull request #1027 from nextcloud/ostatus-follow
...
render profile page for ostatus follow url
2020-09-22 21:15:07 -01:00
Maxence Lange
cb601b9b18
Merge pull request #1028 from nextcloud/html-whitespace
...
preserve some of the whitespace from html tags
2020-09-21 15:03:48 -01:00
Maxence Lange
88cd3e9259
Merge pull request #985 from nextcloud/feature/noid/compat-with-clients
...
[wip] Oauth for 3rdparty clients
2020-09-21 14:47:31 -01:00
Maxence Lange
e57fcd2a36
improved auto_increment
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-09-21 14:46:35 -01:00
Maxence Lange
f5bd9ca6f0
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-09-21 09:54:03 -01:00
Robin Appelman
ce1484f1b0
preserve some of the whitespace from html tags
...
without the "html whitespace" a hashtag posted after a url will be seen as part of the link by linkify, and then mangled by the hashtagmangler and break the url.
additionally this keeps the appearance of the post closer to the original
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-09-18 19:27:44 +02:00
Robin Appelman
952ffb94a6
render profile page for ostatus follow url
...
when initiating a follow from a remote mastadon instance, the user gets directed to 'apps/social/ostatus/follow/?uri=' which is currently broken.
this changes it to render the regular profile page for that link, allowing the user to follow the profile.
I'm not sure what the previous behavior was before things got broken
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-09-18 19:25:13 +02:00
Maxence Lange
638838cd50
single table/model for all exchange
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-09-18 10:55:47 -01:00
Maxence Lange
c827dd3ef2
better navigation
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-09-03 17:49:55 -01:00
Maxence Lange
3cc446aa9d
fixes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-09-03 00:57:07 -01:00
Maxence Lange
cf8a326c2d
avatar on post
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-09-02 12:07:57 -01:00
Jonas Sulzer
ff9224e4ad
👌 IMPROVE: use vue Content components and transmit serverData over initialState
...
- use vue components `Content` and `AppContent` with it's respective styling
to be independent from server styling
- use OCP\IInitialStateService and @nextcloud/initial-state to transmit the serverData
instead of using a hidden span element and jsonEncode/Decode
this is needed to use the `Content` component, so the vue instance can be mounted to
#content directly (otherwise server styling for #content interfers with the vue styling)
- also improves some general styling (mostly widths and margins/paddings)
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
2020-09-02 10:05:22 +02:00
Maxence Lange
875203b75a
adding a numeric id to actors and stream for some 3rdclient
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-09-02 01:59:06 -01:00
Maxence Lange
8e7cf73e85
more endpoints
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-09-01 13:14:19 -01:00
Robin Appelman
0ce3da28d7
query instead of create Application in background jobs
2020-08-28 17:04:21 +02:00
Maxence Lange
8965acea03
oauth, first throw
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-08-28 01:36:19 -01:00
Maxence Lange
e986ca6a4f
proof of concept
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-08-25 02:06:43 -01:00
Maxence Lange
f1c3b696a7
Merge pull request #949 from nextcloud/nickvergessen-patch-1
...
Update language handling in notifier
2020-08-24 08:03:52 -01:00
Maxence Lange
db9a804de0
fixes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-08-22 01:51:40 -01:00
Maxence Lange
0da568f56b
fix mention based on content
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-08-22 01:41:38 -01:00
Julius Härtl
71918f1a0e
Only add index if does not exist yet
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-08-17 08:46:55 +02:00
Maxence Lange
29c3a32ee6
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-08-03 12:51:14 -01:00
Maxence Lange
f149363bff
cleaning
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-08-01 09:43:41 -01:00
Maxence Lange
58f22f961d
remote testing
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-08-01 00:12:01 -01:00
Maxence Lange
85780ffbbc
first throw of chunked table
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-07-31 12:21:59 -01:00
Maxence Lange
445ad15878
uninstall before purge
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-07-30 19:13:40 -01:00
Maxence Lange
39280310b2
Merge remote-tracking branch 'origin/master'
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-07-30 19:12:28 -01:00
Maxence Lange
f4d09d9f6d
get actor from userId
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-07-30 19:12:06 -01:00
Maxence Lange
7862780eaf
details on fail
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-07-27 20:02:09 -01:00
Maxence Lange
b91f94b32e
filter displayed Post based on viewer
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-07-27 19:39:03 -01:00
Joas Schilling
9a264ace7a
Update Notifier.php
2020-07-23 21:25:03 +02:00
Maxence Lange
3b782315b9
filters self-signed certs unless configured to
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-07-07 10:25:50 -01:00
Julius Härtl
3af6dcb1ca
Use strong comparison
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-06-25 16:10:39 +02:00
Maxence Lange
856518cdae
Notification and Migration
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-06-25 01:48:36 -01:00
Maxence Lange
3db58dcda5
migration
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-06-23 11:11:49 -01:00
Maxence Lange
b3d146116e
fixing hashtags
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-06-22 16:55:46 -01:00
Maxence Lange
0888efd78a
fix route on non-token
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-06-18 20:55:54 -01:00
Maxence Lange
1ebb155fcf
fixes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-06-18 18:40:57 -01:00
Maxence Lange
745810e2b0
database & requests
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-06-17 12:41:58 -01:00
Maxence Lange
09a6aac937
new database
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2020-06-12 11:35:49 -01:00
Ruben Barkow
920466e356
Fix Primary index name on "oc_social_a2_cache_documts" is too long
...
also fixes social_a2_request_queue and social_a2_stream_action name length
new names: social_a2_cache_docum, social_a2_req_queue and social_a2_stream_act
closes #850
Signed-off-by: Ruben Barkow <github@r.z11.de>
2020-03-19 09:09:59 +01:00
Maxence Lange
8f4f5cb7a6
better migration
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-10-11 09:43:18 -01:00
Maxence Lange
a2d94040fa
better index of streams
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-10-08 18:52:36 -01:00
Maxence Lange
80c44ad773
returns 404
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-10-05 15:58:47 -01:00
Maxence Lange
dc2141c6de
accepting request on actor id
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-10-05 15:57:31 -01:00
Maxence Lange
a9c9f6dd45
small fix
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-10-03 11:34:29 -01:00
Maxence Lange
d786434128
Merge branch 'master' into feature/noid/returns-viewer-link-on-actor
2019-10-03 11:22:55 -01:00
Maxence Lange
34446aa117
composer
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-10-03 11:13:39 -01:00
Maxence Lange
1b6b79927b
remove old code
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-10-03 10:54:03 -01:00
Maxence Lange
1130d7ffbd
migrate data to a specific table
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-10-03 10:54:03 -01:00
Maxence Lange
6ba6d86fa7
quick optimisation of the timeline tag
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-10-03 10:54:03 -01:00
Maxence Lange
55abe1ab21
add viewerLink during import of Person
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-10-03 10:14:12 -01:00
Maxence Lange
729b10e5df
count only 'Follow'
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-10-02 15:40:38 -01:00