Roland Häder
fdd237a090
Fix for "Uncaught Exception TypeError: "Argument 1 passed to
...
Friendica\Model\APContact::unarchiveInbox() must be of the type string, null
given" error message
2022-06-17 17:18:31 +02:00
Roland Häder
605e7d55b3
Continued:
...
- added more type-hints
- some methods in Diaspora returned void but integer was documented so I
changed it to -1 to have a proper type-hint
2022-06-17 17:18:31 +02:00
Roland Häder
227bab43a8
Ops, wrong type-hint here, must be string ($nickname can never be an integer).
2022-06-17 17:18:31 +02:00
Roland Häder
e484b6d6dc
Continued:
...
- added more type-hints
- added some documentation
- Contact::getAccountType() should only process string, not null
2022-06-17 17:18:31 +02:00
Roland Häder
45b5f67bca
Fix for non-existing record system.mobile_theme in config table
2022-06-17 17:18:31 +02:00
Roland Häder
33768ea1c6
Some fixes:
...
- $gsid's default value cannot sadly be 0, it now must be null to allow some
code work
- added some more type-hints
- documented a bit more
2022-06-17 17:18:31 +02:00
Roland Häder
7560dccc08
Added again more type-hints
2022-06-17 17:18:31 +02:00
Roland Häder
40d7f29a11
Continued:
...
- more type-hints
- fixed incompatible method declarations
2022-06-17 17:18:31 +02:00
Roland Häder
c2e889cfae
Added more type-hints
2022-06-17 17:18:31 +02:00
Roland Häder
0e1f734b03
Also make this null-coalscing
2022-06-16 17:35:01 +02:00
Roland Häder
f2b7326650
This will 2 things:
...
1) The first change prevents "expensive" code in HTML::toBBcode() to be executed
just for an empty string which makes no sense.
2) The above change was maybe flawed as $apcontact['about'] would have never
been created, not even empty which could have side effects
Thanks to @annando to make me rethink this part of code.
2022-06-16 16:54:50 +02:00
Roland Häder
b1e4c0931a
Fixes and type-hints:
...
- added more checked type-hints as they prevent bad method invocations
- fixed TypeError for HTML::toBBCode() invocations with NULL as first (wrong)
argument, thanks to @tobias@social.diekershoff.de pointing this out.
2022-06-16 16:54:49 +02:00
Roland Häder
5fa954208a
Changes:
...
- ops, wasn't actually fixing `return;` to proper `return '';`
- added more type-hints
- added TODO ($uid is unused)
2022-06-15 22:28:33 +02:00
Roland Häder
a3fa95e8e4
Changes:
...
- added more type-hints
- changed `return;` to `return '';` when `string` was requested as returned type-hint
(thanks to @MrPetovan)
2022-06-15 22:05:38 +02:00
Roland Häder
34aee64349
Added more type-hints
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2022-06-15 21:52:51 +02:00
Roland Häder
143e4c4a18
Added more known type-hints
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2022-06-15 21:52:50 +02:00
Michael
b816ae4db5
Some more default avatars
2022-06-13 20:07:54 +00:00
Michael
70b9a8114d
Improve license comment
2022-06-13 10:30:21 +00:00
Michael
d9fb081db9
Using separate avatars for different peertube account types
2022-06-13 10:27:46 +00:00
Michael
c1a64b77c0
Improved license text
2022-06-13 10:03:34 +00:00
Michael
e0a0c57c44
Use platform specific default avatar pictures
2022-06-13 05:18:54 +00:00
Michael
57b8708425
Issue 11566: More detailled notification configuration
2022-06-05 11:41:08 +00:00
Michael
4108704ee3
Fix: Only public posts can be pinned
2022-06-04 06:11:32 +00:00
Hypolite Petovan
7f711e266f
Assume unsettable system.always_my_theme pconfig value is always true
...
- This was a logged in user setting so it assumes false for anonymous users
2022-05-29 16:13:49 -04:00
Hypolite Petovan
220703575c
Merge pull request #11577 from annando/issue-11557
...
Issue 11557: Update all local contacts
2022-05-29 15:53:21 -04:00
Michael
540b3f892b
Issue 11557: Update all local contacts
2022-05-29 17:48:09 +00:00
Michael
42d3e5c1ce
Issue 11488: Don't search for mentions in shared posts
2022-05-29 16:07:53 +00:00
Michael
1dccc31508
Issue 11469: Repect desktop notification settings
2022-05-29 09:20:06 +00:00
Michael
4ef7f42257
Issue 11470: Check for removed account
2022-05-28 16:21:41 +00:00
Michael
0a43fe857c
Pass the "force" parameter to the avatar update
2022-05-27 05:36:07 +00:00
Hypolite Petovan
488fdd9791
Merge pull request #11558 from annando/public-contact
...
Ensure that the public contact exists before adding a user contact
2022-05-25 09:06:13 -04:00
Michael
918c1eeb56
Check for phantom network
2022-05-25 11:46:58 +00:00
Michael
f5d69b3b6a
Ensure that the public contact exixts before adding a user contact
2022-05-25 11:43:29 +00:00
Michael
0ff8ca8053
Trim the rid
2022-05-24 17:39:02 +00:00
Michael
49dab14215
Only use proxied image links with images
2022-05-21 06:58:26 +00:00
Michael
49c47008d1
Convert class calls into DI calls
2022-05-19 09:08:04 +00:00
Tobias Diekershoff
b18880221a
Merge pull request #11531 from annando/display-polls
...
Improved poll texts for different conditions
2022-05-18 08:16:41 +02:00
Michael
0b50dc363b
Caching of "noscrape"
2022-05-17 15:39:04 +00:00
Michael
c3fd8b39aa
Caching for profiles removed
2022-05-17 12:53:31 +00:00
Michael
4e3e9dc763
Cache the profile as well
2022-05-17 12:46:55 +00:00
Michael
75534fa3f3
Fix warning " Trying to access array offset on value of type bool"
2022-05-17 12:38:39 +00:00
Michael
73019284ce
Increase cache lifespan / clear cache upon changes
2022-05-17 12:32:25 +00:00
Michael
10cdefa232
Fix: Fetch media in shared posts
2022-05-17 07:58:41 +00:00
Michael
4daae255d8
Performance: Avoid queries where there is no media or category
2022-05-16 17:06:58 +00:00
Michael
62a1cf257e
Improved poll texts for different conditions
2022-05-16 06:04:46 +00:00
Michael
2dc9b4eda2
Vote text changed
2022-05-16 05:31:53 +00:00
Michael
a63caefe3d
Polls are now displayed
2022-05-16 04:55:15 +00:00
Hypolite Petovan
4829c240e9
Merge pull request #11516 from annando/issue-11472
...
Issue 11472: Store the "edit" history
2022-05-15 20:24:59 -04:00
Michael
2c511b8a23
Check the edit date before storing history
2022-05-15 21:15:31 +00:00
Michael
440b6d7956
Issue 11504: Abstract has to be plaintext
2022-05-15 21:04:01 +00:00
Michael
d77b043d9c
Fixing tests
2022-05-15 20:26:14 +00:00
Michael
324cce7a19
Issue 11472: Store the "edit" history
2022-05-15 20:21:56 +00:00
Michael
30b9af10ac
Fetch featured posts through a worker
2022-05-15 09:08:35 +00:00
Michael
a8839517fe
Fix workerqueue entries with wrong priority
2022-05-14 06:36:43 +00:00
Michael
fab5ba39ff
Failed post deliveries are now deleted via cron
2022-05-13 18:48:13 +00:00
Michael
a662245c74
We now store the receivers as well
2022-05-13 05:52:05 +00:00
Michael
b0b67f1fde
Remove failing posts
2022-05-12 12:43:49 +00:00
Michael
a943dbb420
Introducing the "failed" counter
2022-05-12 06:54:58 +00:00
Michael
3d7ecb4fde
Don't update the local avatar
2022-05-11 18:30:59 +00:00
Michael
47ee6fd009
Fix a warning because of an undefined array key
2022-05-11 16:01:37 +00:00
Michael
fae414fedd
Fix local avatar, improve speed for fetching cached photos
2022-05-10 18:18:24 +00:00
Michael
7c3173a0ae
Avoid endless loop when storing posts
2022-05-10 06:07:26 +00:00
Michael
006b7a95f0
More avatar handling isolation
2022-05-09 06:57:47 +00:00
Michael
53d064c283
Avatar handling is moved to a separate class
2022-05-09 06:27:46 +00:00
Michael
e3692c0105
Replaced check with hardwired path
2022-05-09 04:26:00 +00:00
Michael
f220e26f00
Use new function to check for a local avatar cache file
2022-05-08 10:32:29 +00:00
Michael
805dc8e6bd
Fix config call
2022-05-08 09:34:30 +00:00
Michael
dd422a1e03
Fix contact field name
2022-05-08 08:57:41 +00:00
Michael
7b0187c4c5
Don't overwrite already replaced cache file paths
2022-05-08 08:53:18 +00:00
Michael
2d856f48b7
Use the default timeout
2022-05-08 05:51:18 +00:00
Michael
a31256412e
Cache contact avatars locally as files
2022-05-08 05:37:17 +00:00
Michael
67c3a20c4f
Issue 11440: Hashtags are now generated again
2022-05-06 17:03:51 +00:00
Michael
4d359b7de1
Move the plink functionality to the right function
2022-05-05 07:57:52 +00:00
Michael
10b453bfc2
Deprecated function removed
2022-05-04 07:49:37 +00:00
Michael
60532ee7e4
Fill the item cache when storing item
2022-05-04 06:17:34 +00:00
Michael
f6218427a4
Use the uri-id to fetch the contact
2022-05-03 21:51:56 +00:00
Michael
40aa67f8be
Bulk transmission for AP posts
2022-05-02 05:15:27 +00:00
Michael
19c1b31ab2
Only add valid values to the worker
2022-05-01 07:03:10 +00:00
Michael
1f43332a1d
Only fetch category when it exists
2022-04-30 06:57:22 +00:00
Michael
a2452b33eb
Add missing fields to collection
2022-04-29 10:13:23 +00:00
Michael
d3de2497bc
Use gsid for the network name
2022-04-29 07:47:24 +00:00
Michael
d44641e58c
Fetch avatar by id
2022-04-29 07:30:13 +00:00
Michael
144c9f00f4
Fix: Show reshared posts on the contact page
2022-04-27 03:25:47 +00:00
Michael
171354181d
Use central function to fetch the global directory
2022-04-26 18:33:58 +00:00
Michael
83e311decb
Standards
2022-04-25 13:49:17 +00:00
Michael
990eea2c4e
We now store uncommon endpoints
2022-04-25 13:45:03 +00:00
Michael
069a008ca4
Removed unused tag entries
2022-04-24 15:27:20 +00:00
Michael
4af6e730d3
Use different collections
2022-04-23 12:32:29 +00:00
Michael
0a3c5cc40c
Add the function documentation
2022-04-23 11:43:30 +00:00
Michael
060597f619
Store the tag type for the post targets
2022-04-23 11:39:19 +00:00
Michael
9b646dad97
API: We can now display polls
2022-04-22 19:24:22 +00:00
Michael
8d25094719
Fix test
2022-04-20 06:33:14 +00:00
Michael
834844573b
We can now store incoming questions
2022-04-20 06:28:02 +00:00
Michael
0380a3e216
Fix: The language detection only searched for farsi
2022-04-19 06:16:44 +00:00
Michael
0d8cf06e4a
Experimental feature to enter a custom creation date
2022-04-13 05:31:32 +00:00
Michael
30e5ef928a
Avoid wrong server type detection / Owncast added
2022-04-12 05:34:34 +00:00
Michael
62367923e0
Fix several notices
2022-04-11 18:57:30 +00:00
Hypolite Petovan
3842f02b02
Merge pull request #11402 from annando/featured-endpoint
...
We now offer an endpoint for featured posts
2022-04-11 11:17:56 -04:00
Michael
d7df0825db
We now offer an endpoint for featured posts
2022-04-08 21:25:31 +00:00
Hypolite Petovan
4eecf733e1
Merge pull request #11389 from nupplaphil/feat/http_client_arg
...
Introduce explicit HttpClient "Accept" parameter
2022-04-08 15:05:40 -04:00
Philipp
3033f79529
head fixings
2022-04-08 20:48:57 +02:00
Philipp
8e2cc678dc
head fixings
2022-04-08 20:41:25 +02:00
Michael Vogel
b2b8b23ed6
Update src/Model/Contact.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022-04-08 13:59:43 +02:00
Michael
69b7923df2
Use centralized function to fetch query results
2022-04-08 06:04:50 +00:00
Michael
6c8ea1d0d8
Updated messages.po / type added to query
2022-04-08 04:17:52 +00:00
Michael
75bc4eccb7
Display featured posts for contacts
2022-04-07 21:52:25 +00:00
Michael
65071ffc9e
Issue 11393: Fix failing preview
2022-04-06 16:26:51 +00:00
Michael
5a3fe900f0
Fix test
2022-04-06 15:32:14 +00:00
Michael
a1dd299eb3
Preparations for "featured" posts
2022-04-06 13:34:11 +00:00
Michael
c0b3c527d6
Added processing of incoming block notices
2022-04-05 19:14:29 +00:00
Michael
61abc6377d
Preparation for "Featured" collection added
2022-04-04 23:07:44 +00:00
Philipp
04866195b4
Remove accept parameter for head/post again
2022-04-03 19:33:09 +02:00
Michael
029daef997
Only use and accept valid http links as links to an external resource
2022-04-03 07:21:36 +00:00
Philipp
e299fc67c8
Introduce "accept_header" as specific argument to the http client
2022-04-02 21:16:53 +02:00
Philipp
73c3b21665
Move ACCEPT constants to own "enum" class
2022-04-02 20:26:11 +02:00
Michael
2ca51f752d
Use appropriate "accept" values
2022-03-30 14:39:53 +00:00
Michael
28e3eee91b
Add "Accept" to "head"
2022-03-29 13:34:54 +00:00
Michael
1fae0123ec
Some more "accept" parameters are added
2022-03-29 06:24:20 +00:00
Michael
ff70f74952
"accept" constants introduced and used
2022-03-28 10:33:06 +00:00
Michael
91905bea89
Don't create empty announce notifications
2022-03-19 17:53:41 +00:00
Michael
0aa229489f
Improved function description
2022-03-18 07:24:45 -04:00
Michael
040abc7743
Use a nicer GUID style format
2022-03-18 07:24:44 -04:00
Hypolite Petovan
7b9e62198e
Suppress a couple MemcachedException
...
- Replace URL by uri-id in apcontact
- Replace date with a space and nurl by nick and Zulu time in mod/poco
2022-03-15 10:54:00 -04:00
Hypolite Petovan
e6f745bcb1
Delete follow notification on unfollow
...
- Fix translation string typo
2022-03-14 07:58:39 -04:00
Hypolite Petovan
deafdcde95
Use public contact ID in Model\Post\UserNotification::insertNotification
...
- Add localRelationship dependency to Notification factory
- Remove dependencies from Factory\Notification->getMessageFromNotification method
2022-03-14 07:56:20 -04:00
Michael
12d7c99f46
Don't send notifications for activities caused by the community contact
2022-03-13 05:44:29 +00:00
Michael
073a6afaaf
Reduce amount of notifications by communities
2022-03-12 04:20:19 +00:00
Michael
5eb647585d
Issue 11315: Fix for all receivers in "to"
2022-03-11 20:39:03 +00:00
Michael
2f97d61a09
Estimate active server users when not provided by the system
2022-03-10 21:50:00 +00:00
Michael
903bc9b679
Improved support for Mastodon style content warnings
2022-03-06 11:49:55 +00:00
Hypolite Petovan
cddead2343
Move follow revoke protocol to worker task
...
- Switch to public contact for revoke_follow hook
2022-02-24 09:35:55 -05:00
Hypolite Petovan
6a1f9a7fa3
Move unfollow protocol to worker task
...
- Add uid parameter to unfollow hook
- Rework and unify Contact::unfollow, Contact::removeSharer and Contact::terminateFriendship
- Add missing twitterUser property to Twitter\Friendships\Destroy module
2022-02-24 09:35:54 -05:00
Hypolite Petovan
52f5d924b7
Replace remaining instances of DBA::update('contact') with Contact::update()
...
- This was breaking the synchronisation between the contact and user-contact tables
2022-02-24 09:35:54 -05:00
Hypolite Petovan
1d779c6193
Ensure the private message recipient is valid in Mail::send
...
- Arbitrary input could be used to circumvent most restrictions regarding recipients (except contact relationship)
2022-02-23 21:30:18 -05:00
Hypolite Petovan
c86cc83524
Merge pull request #11260 from mkljczk/develop
...
API: add list members editing
2022-02-20 09:45:25 -05:00
marcin mikołajczak
0209892631
Apply suggestions
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-20 14:10:57 +01:00
Michael
311c1fdd81
Avoid warning and notice
2022-02-20 05:14:36 +00:00
marcin mikołajczak
9c6f6bcb95
API: add list members editing
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-02-19 23:22:54 +01:00
Michael
c867581530
Store the receivers of a post in the tags
2022-02-19 13:31:49 +00:00
Hypolite Petovan
c03ff7833b
Merge pull request #11253 from annando/forum3
...
More rework to make private communities working
2022-02-18 12:19:57 -05:00
Tobias Diekershoff
4c7d3a6371
Merge pull request #11255 from MrPetovan/task/11245-thread-completion-like
...
Relax comparison with pconfig system.accept_only_sharer value
2022-02-18 17:09:42 +01:00
Hypolite Petovan
c376081d0d
Relax comparison with pconfig system.accept_only_sharer value
...
- DI::pConfig()->get returns a string value, not an integer
- Removed superfluous default values now that we aren't doing strict type checking
2022-02-18 09:32:30 -05:00
Michael
39724d5079
Add the mentions
2022-02-18 09:12:33 +00:00
Michael
ebb4c0f947
tests
2022-02-18 06:12:02 +00:00
Michael
0ce756596e
Tests again
2022-02-18 05:56:17 +00:00
Michael
830a91e586
Avoid failed test
2022-02-18 05:34:18 +00:00
Michael
7a5a8c8d68
Improve look of reshared items on the forum profile
2022-02-17 23:06:57 +00:00
Michael
49dd97e5fd
User lower case
2022-02-17 21:51:47 +00:00
Michael
234dac49b4
Rrepeat comments as well
2022-02-17 21:44:59 +00:00
Michael
1b6b6bcc6d
Renamed function
2022-02-17 07:53:24 +00:00
Michael
51fb265621
Merge remote-tracking branch 'upstream/develop' into forum3
2022-02-17 07:11:50 +00:00
Michael Vogel
618dda7dd2
Merge pull request #11246 from MrPetovan/task/11245-thread-completion-like
...
Expand system.accept_only_sharer pconfig value to include previous behavior with likes
2022-02-17 08:02:19 +01:00
Michael
9ac24a0f36
More rework to make private communities working
2022-02-16 22:56:55 +00:00
Michael
33edfc6a5f
Fix for private communities
2022-02-15 23:51:13 +00:00
Hypolite Petovan
99979019bf
Expand system.accept_only_sharer pconfig value to include previous behavior with likes
2022-02-15 15:54:36 -05:00
Hypolite Petovan
361fdccdc7
Merge pull request #11242 from annando/private-forums
...
Private forums are now working via AP
2022-02-15 12:06:34 -05:00
Michael
d019ef57d2
Database version increased, code simplified
2022-02-15 15:44:44 +00:00
Hypolite Petovan
9ae0234bb5
Use expected order for post medias
...
- This fixes the wrong display order of post pictures
2022-02-15 09:53:24 -05:00
Michael
29d83c0ffb
Block communication with Diaspora for communities
2022-02-15 07:08:02 +00:00
Michael
2b0518ac04
unset several table fields before distribution
2022-02-15 06:21:46 +00:00
Michael
d404f15312
Improve local forum distribution
2022-02-14 22:04:33 +00:00
Michael
ee3a8ccb3b
No notifcations for forum / fetch user for fetching content
2022-02-13 05:45:06 +00:00
Michael
e394143148
Private forums are now working via ActivityPub
2022-02-12 18:38:36 +00:00
Michael
5b46b41226
New function to add group members from a forum
2022-02-09 21:34:25 +00:00
Michael
9a764516d0
Use the "contact-type" instead of "forum" or "prv"
2022-02-09 06:52:16 +00:00
Michael
92a71f8c27
Store wekk/month&halfyear usage / number of posts
2022-02-06 20:03:19 +00:00
Michael
8b585c6ccc
Set the timeout to 10 seconds
2022-02-06 10:07:18 +00:00
Michael
b3da88ceaa
Don't assume AP with Wordpress
2022-02-06 09:21:14 +00:00
Michael
85f029a724
Enforce probing
2022-02-06 09:03:48 +00:00
Michael
f1cac5170b
mark sites as "phantom" that are up but couldn't be detected
2022-02-06 08:02:19 +00:00
Michael
ea2faa28fe
Use first word as platform / improvements for registered users
2022-02-06 05:59:47 +00:00
Michael
650f90df25
Platforms: only use and show trusted detections
2022-02-05 22:14:19 +00:00
Hypolite Petovan
121e40357c
Merge pull request #11209 from annando/issue-10365-Events
...
Issue 10365: Event updates are now processed
2022-02-05 12:08:00 -05:00
Michael
69d7391f90
Added comment
2022-02-05 16:49:21 +00:00
Michael Vogel
3a96a97189
Update src/Model/GServer.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022-02-05 16:01:04 +01:00
Michael
1564447b8c
Detect pump.io servers
2022-02-05 11:25:06 +00:00
Michael
bd8032f2ba
Issue 10365: Event updates are now processed
2022-02-05 11:16:50 +00:00
Michael
695d6ce461
Issue 10966: Ignore "only sharer" setting for forum accounts
2022-02-03 20:26:30 +00:00
Michael
4808713668
Don't cache local avatars
2022-02-01 20:22:40 +00:00
Michael
b9ea7adbda
Issue 10966: Perform forum handling with the unified format
2022-01-30 04:48:22 +00:00
Michael
d4f97f8a4b
Issue 10966: Improved logging / reworked forum functionality
2022-01-29 19:09:18 +00:00
Michael
9eec2bf5f3
Improved support for "Page" type
2022-01-27 17:51:23 +00:00
Michael
27a306185a
Improved notification for announced posts
2022-01-23 21:47:16 +00:00
Michael
2b0c2a57a7
Merge remote-tracking branch 'upstream/2021.12-rc' into announce-notification
2022-01-23 19:38:16 +00:00
Michael
8bb2c9fc13
Support for desktop notifications for reshared posts
2022-01-23 19:37:52 +00:00
Philipp
2c33a7803e
Merge pull request #11150 from annando/user-banner
...
First support for user header banner image
2022-01-23 20:10:42 +01:00
Michael
a8c6160dd7
Improved handling of several object types
2022-01-23 04:40:45 +00:00
Michael
7d21f6f8d3
Merge remote-tracking branch 'upstream/2021.12-rc' into user-banner
2022-01-19 18:41:31 +00:00
Hypolite Petovan
babbdf58e6
Fix wrong default value in Module\Api\Friendica\Photo\Create::post
...
- The underlying Model\Photo::upload doesn't accept a null value for description
2022-01-17 16:46:43 -05:00
Michael
0b4aa019fd
Merge remote-tracking branch 'upstream/2021.12-rc' into user-banner
2022-01-15 05:36:06 +00:00
Hypolite Petovan
18b32b68aa
[frio] Add connector-based privacy display
2022-01-09 12:17:52 -05:00
Michael
777919e679
Fix jpeg ending
2022-01-09 16:06:00 +00:00
Michael
bb349a7db4
Partially revert changes for the RC
2022-01-09 15:45:14 +00:00
Michael
10bdaa0cfe
Always generate a random header if missing
2022-01-09 11:19:31 +00:00
Michael
df45a3b915
Remove unneeded code
2022-01-09 10:43:23 +00:00
Michael
bbda69a736
Don't store the default header in the contact table
2022-01-09 10:38:36 +00:00
Michael
618903fef7
Only update the contact when the header changed
2022-01-09 05:49:11 +00:00
Michael
cfd63f5682
Use randon pictures for networks that don't support banners
2022-01-09 05:24:35 +00:00
Michael
8147073c47
Added license information
2022-01-09 03:29:16 +00:00
Michael
59358077c7
First support for user headers
2022-01-08 22:43:11 +00:00
Philipp
2d326c8a27
Merge pull request #11143 from annando/api-again
...
API: Functionality moved to new places
2022-01-06 21:19:04 +01:00
Michael
543cc7f51f
Moved tests, changes after review
2022-01-06 20:13:32 +00:00
Michael
9414edd64a
API: Functionality moved to new places
2022-01-06 07:34:16 +00:00
Philipp
d2229006fc
- Remove redundant code
...
- Rename some variables
- Add method description
2022-01-04 22:10:36 +01:00
Philipp
7b3515e706
Fix getBirthdays()
...
- Formatting optimizations
- Remove redundant ASC
2022-01-04 22:10:36 +01:00
Philipp
6eab7d9f14
Fix getBirthdays()
...
- explicit create an array for the template
2022-01-04 21:59:47 +01:00
Balázs Úr
733f3de9ed
Add missing copyright text
2022-01-02 10:49:50 +01:00
Philipp
322b7c856c
Merge pull request #11129 from urbalazs/copyright-2022
...
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr
e56a53647b
Update copyright
2022-01-02 08:27:47 +01:00
Michael
ce174cad91
More often update Diaspora contacts
2021-12-30 22:40:52 +00:00
Michael
29be22ee6a
Display interaction data for Diaspora accounts
2021-12-30 22:11:52 +00:00
Michael
a97bfb512a
Issue 11104: Don't cann the addons on Diaspora reshare
2021-12-20 21:16:00 +00:00
Michael
3c2e1db19f
Don't compare with an empty redirect url
2021-12-18 10:07:16 +00:00
Michael
11e8ae52e0
Issue 11109: Fix server detection
2021-12-18 09:59:30 +00:00
Hypolite Petovan
80da47921e
Replace references to UTC_TIMESTAMP in SQL queries with a DateTimeFormat generated parameter
2021-12-04 17:53:08 -05:00
Michael
3d65809a82
Fix media handling upon creation and display
2021-12-04 04:03:18 +00:00
Philipp
a5ab184fb8
Merge pull request #11025 from MrPetovan/task/11022-improve-connector-hooks
...
Improve connector hooks
2021-11-27 12:37:47 +01:00
Philipp
e852623c4f
Merge pull request #11030 from MrPetovan/bug/11029-add-remove-group
...
Add backward compatibility with user contacts in Module\Group
2021-11-27 12:37:18 +01:00
Hypolite Petovan
1c5aef0685
Escape dollar sign in replace string to prevent placeholder replacement in Model\Item::addShareDataFromOriginal
2021-11-26 12:38:34 -05:00
Hypolite Petovan
8bfe877629
Add backward compatibility with user contacts in Module\Group
2021-11-26 09:48:37 -05:00
Hypolite Petovan
39c763ce2f
Add item_by_link hook to allow connectors to import remote posts
2021-11-23 17:47:02 -05:00
Hypolite Petovan
f7714c09e6
Fix user-contact rows not being updated in Contact\User::updateByContactUpdate
...
- Add new update function to regenerate potentially outdated user-contact rows
2021-11-21 18:59:37 -05:00
Hypolite Petovan
84e7f65d52
Move sending follow message to remote server to Protocol class
2021-11-21 18:59:36 -05:00
Hypolite Petovan
d011f747ff
Remove unused parameter $network in Model\User::getDefaultGroup
2021-11-21 18:59:36 -05:00
Hypolite Petovan
8d550ad4e8
Merge pull request #10961 from annando/deprecated
...
Removed and replaced deprecated functionalities
2021-11-07 10:53:17 -05:00
Michael
eb1b2256a0
Removed and replaced deprecated functionalities
2021-11-07 14:00:47 +00:00
Philipp
5350e0852d
Add hostname
to Process
entity
2021-11-06 20:21:01 +01:00
Hypolite Petovan
41062eb7e4
Add new purge contacts option to admin server blocklist
...
- Move adding a server domain pattern to the blocklist in a separate module to allow reviewing the list of known servers that would be affected
2021-11-06 01:36:53 -04:00
Hypolite Petovan
edcfeaf66d
Merge pull request #10956 from annando/escapetags
...
Some removed escapeTags calls
2021-11-06 00:04:17 -04:00
Michael
23b10cf2ae
Some removed escapeTags calls
2021-11-05 19:59:18 +00:00
Philipp
38f70cc55a
Refactor Process for new paradigm
2021-11-05 20:52:28 +01:00
Michael
63da4a75e9
The boot.php had been cleared of most functions
2021-11-04 20:29:59 +00:00
Michael
24ee87224f
Replaced deprecated "log" function call
2021-11-03 23:19:24 +00:00
Philipp
409d909d0f
Restructure HTTPClient for new paradigm
2021-10-28 20:01:03 +02:00
Philipp
2ab0d06996
Restructure Storage to new paradigm
2021-10-27 20:00:19 +02:00
Philipp
58eea1adaa
Cleanup namespaces
2021-10-26 22:11:10 +02:00
Philipp
b216317477
Refactoring Core class structures ...
2021-10-26 22:11:09 +02:00
Philipp
ab83d0dd27
Restructure (P)Config to follow new paradigm
2021-10-26 22:11:06 +02:00
Philipp
68046573a4
Restructure Cache to follow new paradigm
2021-10-26 22:11:06 +02:00
Michael
a0c1c3f661
Fix notice "Array to string conversion"
2021-10-25 20:54:36 +00:00
Michael
87673fd0c5
Merge remote-tracking branch 'upstream/develop' into logging
2021-10-25 18:56:29 +00:00
Hypolite Petovan
d1417d74bc
Add timezone to event dates format in Model\Event::getHTML
...
- Adds timezone information for user-less contexts like syndication feeds
2021-10-24 23:17:55 -04:00
Philipp
82a6c78033
Move FSuggest to depository
2021-10-23 21:45:35 -04:00
Michael
8185c591d8
New option to activate/deactivate contact avatar cache
2021-10-23 17:18:30 +00:00
Michael
a497bd3a3d
Merge remote-tracking branch 'upstream/develop' into logging
2021-10-22 06:06:39 +00:00
Hypolite Petovan
82c2a30c59
Fix wrong array access to Entity object
...
- Address https://github.com/friendica/friendica/issues/10756#issuecomment-949051839
2021-10-21 18:58:18 -04:00
Philipp
bf7c66b2c7
Fix Model\Contact\Introduction::confirm()
2021-10-21 21:57:25 +02:00
Philipp
d67b676ce5
Fix confirm parameter
2021-10-21 21:57:24 +02:00
Philipp
3153e098b0
Remove deprecated, impossible code for discarding with FID
2021-10-21 21:57:24 +02:00
Philipp
7d7d310cc4
Replace almost every Introduction places
2021-10-21 21:49:21 +02:00
Philipp
a40f503fdd
Move Introduction to new depository paradigm
2021-10-21 21:49:20 +02:00
Michael
f6faae5bb1
Replace deprecated log
calls
2021-10-20 18:53:52 +00:00
Hypolite Petovan
353cd66b26
Merge pull request #10900 from annando/notify
...
`enotify.php` is removed and its functions were transferred
2021-10-19 22:22:41 -04:00
Michael
2f1f6f6fb2
Replace "notification" call with new function, removing enotify.php
2021-10-19 19:45:36 +00:00
Michael
3781b34272
PROFILE_PHOTOS is mostly removed and replaced
2021-10-19 19:15:28 +00:00
Michael
4422be9cea
Removing functionality from enotify.php
2021-10-19 19:09:53 +00:00
Michael
b152fde9d1
Don't degrade an existing relationship when following again
2021-10-19 02:05:04 +00:00
Philipp
5fecc9ecf7
Adapt ProfileField & Fix current PermissionSet Usage at ProfileFields
2021-10-18 23:32:44 +02:00
Philipp
838cdac5d1
Move ProfileFieldRepository::migrateFromLegacyProfile() & delete old repository
2021-10-18 23:32:41 +02:00
Philipp
1c0f92c382
Move ProfileField from Model to Entity
2021-10-18 23:32:38 +02:00
Philipp
5d0b7fd87b
Merge pull request #10882 from MrPetovan/task/10865-contact-purge
...
Add new purge contact content option to admin contact blocklist
2021-10-17 23:44:28 +02:00
Michael
f1d3f60499
Remove "fcontact" from suggestions
2021-10-17 20:19:02 +00:00
Hypolite Petovan
fc2175260f
Move Worker task RemoveContact to Contact\Remove
2021-10-16 19:22:24 -04:00
Hypolite Petovan
45fc6759b8
Remove unused method in Model\\Contact
2021-10-16 16:05:09 -04:00
Hypolite Petovan
ca2c73a2cd
Account for the PUBLIC value for id parameter in Depository\PermissionSet::selectOneById
2021-10-16 15:42:21 -04:00
Michael
c6021a45b1
Updated messages.po, keep a translatable string
2021-10-14 06:22:47 +00:00
Michael
a33185f835
Use a constant for the profile photo album
2021-10-14 04:12:00 +00:00
Michael
8d7846142d
Hide blocked contacts when searching public contacts
2021-10-13 21:04:46 +00:00
Michael
2904f4ca0e
Olq query removed, checking for deleted as well
2021-10-13 05:11:36 +00:00
Michael
27b9da3df5
replace "p" with higher level database functions
2021-10-12 05:53:29 +00:00
Michael
13827edd2c
New photo field "photo-type" as preparation for banners
2021-10-11 14:21:10 +00:00
Michael
2c134c5229
q
is now completely removed
2021-10-09 21:16:15 +00:00
Philipp
58215e56c3
Merge pull request #10854 from MrPetovan/bug/10844-unfollow
...
Replace remaining explicit network value checks by Protocol::supportsFollow calls
2021-10-09 09:23:12 +02:00
Hypolite Petovan
479458a389
Add missing parameters to Contact::block/unblock
2021-10-09 02:09:01 -04:00
Hypolite Petovan
880c2148c2
Fix overly strict return value for revokeFollow methods
2021-10-09 02:08:04 -04:00
Hypolite Petovan
80a8cd86c4
Merge pull request #10836 from nupplaphil/feat/depository_permissionset
...
Migrate PermissionSet to Depository paradigm
2021-10-08 09:39:39 -04:00
Philipp
93c44e6186
exception msg .. once again ;-)
2021-10-08 13:36:19 +02:00
Philipp
df8bd18673
Typo
2021-10-08 12:37:53 +02:00
Michael
a32c10b354
Simplifid query
2021-10-08 04:24:59 +00:00
Michael
3972fe62fe
More replaced "q" calls
2021-10-08 04:10:45 +00:00
Philipp
f73e4adc44
Add explicit check for PermissionSet and ProfileField
2021-10-07 20:48:39 +02:00
Philipp
03164d00e8
Add feedback and tests
2021-10-07 19:53:39 +02:00
Philipp
62eb16e9ad
Migrate PermissionSet to Depository paradigm
2021-10-07 19:53:38 +02:00
Hypolite Petovan
456ae169ab
Fix overly strict return value for terminateFriendship methods
2021-10-06 20:18:44 -04:00
Michael
ab17fbf6b2
Unneeded "ProxyUtils" renamed to "Proxy"
2021-10-05 20:18:19 +00:00
Philipp
7471b7698b
Adapt filesystem tests
2021-10-05 20:29:52 +02:00
Philipp
ccd8895237
Adress feedback :)
2021-10-05 20:07:14 +02:00
Philipp
065b46c721
Split Storage usage and Storage configuration
2021-10-05 20:07:12 +02:00
Michael
9eba41598d
Code review changes
2021-10-04 14:01:46 +00:00
Michael
126aa6f148
Fix tests
2021-10-04 06:26:41 +00:00
Michael
43a17b6129
Merge remote-tracking branch 'upstream/develop' into photo-guid
2021-10-04 06:21:19 +00:00
Michael
d30dc52101
Access contact avatars by guid
2021-10-04 06:13:52 +00:00
Hypolite Petovan
42e77e23ac
Add logging to track a Notice messages
...
- Part of https://github.com/friendica/friendica/issues/10755#issuecomment-933040517
2021-10-03 20:59:41 -04:00
Michael
1d86d79778
Merge remote-tracking branch 'upstream/develop' into more-q
2021-10-03 19:49:11 +00:00
Michael
b0bf4b4359
Some more "q" calls and deprecated logging replaced
2021-10-03 19:43:49 +00:00
Hypolite Petovan
9935e8e711
Remove event.adjust field
...
- It was confusing and introduced complexity that wasn't worth the unclear gain
2021-10-03 13:42:32 -04:00
Michael
6668591afe
Merge remote-tracking branch 'upstream/develop' into more-q
2021-10-03 15:06:31 +00:00
Michael
763e264196
More "q" calls have been replaced
2021-10-03 15:02:20 +00:00
Michael Vogel
3d97149007
Merge pull request #10722 from MrPetovan/task/refactor-notifications
...
Move notify, notifications and introduction notifications to new paradigm
2021-10-03 14:13:28 +02:00
Michael
42790fbc1f
Don't store emoji images as media but links
2021-10-03 09:42:14 +00:00
Hypolite Petovan
8cb0bb5deb
Switch uid with nickname in user picture URLs
...
- Keep previous URL scheme fallback as remote contact avatar URLs pointing to local user avatar URLs need to update
2021-10-02 19:06:59 -04:00
Hypolite Petovan
7cdd2d1336
Refactor User::getAvatarUrlForId into getAvatarUrl
...
- Use user/owner array as parameter instead of uid
- Rename $profile variables to $owner when it's the result of User::getOwnerDataByNick
- Replace Module\Photo::stripExtension with native pathinfo() calls
2021-10-02 19:06:25 -04:00
Hypolite Petovan
7a2d5f6a8e
Move notification to the new paradigm
2021-10-02 18:15:45 -04:00
Hypolite Petovan
3e6fea30f2
Create constants for Mastodon notification types
2021-10-02 18:15:44 -04:00
Hypolite Petovan
ea6f7aba40
Fix method name typos in Model\Post\UserNotification
...
- Reformat file, improve type-hinting
2021-10-02 18:15:43 -04:00
Hypolite Petovan
bf81f21001
Rename Model\Post\UserNotifications type constants
2021-10-02 18:15:43 -04:00
Hypolite Petovan
47acb6a278
Move notify to the new paradigm
...
- Remove unused frion notify template
- Update API test
2021-10-02 18:15:42 -04:00
Hypolite Petovan
66fec8944f
Add block and unblock hooks
2021-10-02 17:30:40 -04:00
Hypolite Petovan
b0d8136b00
Remove contact record instead of setting rel = 0 in Contact::revokeFollow
2021-10-02 17:30:03 -04:00
Hypolite Petovan
c4a4473cd0
Remove the obsolete parameter $two_way from terminateFriendship methods
...
- Follow revokation is now done independently
2021-10-02 16:14:22 -04:00
Hypolite Petovan
222333f64f
Remove contact drop feature
...
- Feature was confusing, sometimes ineffective and overall overlapping with unfollow/block
2021-10-02 16:04:28 -04:00
Michael
da3fbced38
Merge branch 'contact-media' of github.com:annando/friendica into contact-media
2021-10-02 18:35:47 +00:00
Michael
2408ac8227
Merge remote-tracking branch 'upstream/develop' into contact-media
2021-10-02 18:35:43 +00:00
Michael Vogel
a2f5190bdb
Update src/Model/Contact.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-10-02 20:31:30 +02:00
Hypolite Petovan
72fae04e97
Add revoke follow feature
...
- Add new follow revoke module
- Add new hooks: revoke_follow, support_follow, support_revoke_follow
- Add link in contact page action menu
2021-10-02 14:01:46 -04:00
Michael
c822cdaebd
Removing "blubb"
2021-10-02 17:47:11 +00:00
Michael
a44d200c21
Merge remote-tracking branch 'upstream/develop' into contact-media
2021-10-02 15:13:55 +00:00
Michael
c3554ac0f4
"Video" is replaced by a "Media" tab in contact and profile
2021-10-02 15:09:43 +00:00
Hypolite Petovan
797391e1d8
Rework contact termination to separate protocol-level and contact-level
...
- Mail and Feed contacts are now removed automatically on relationship termination
- Added logging and notice messages for different results
2021-10-02 08:31:59 -04:00
Michael
865006682a
Merge remote-tracking branch 'upstream/develop' into user-contact
2021-10-02 11:57:43 +00:00
Michael
f1e2ceb32c
Issue 10747: Improved check for blocked domains
2021-10-02 10:25:50 +00:00
Hypolite Petovan
2a88262732
Merge pull request #10760 from annando/conversation-moved
...
The conversation functionality moved to a class
2021-09-26 10:03:26 -04:00
Hypolite Petovan
0bb169b4ed
Check for reply existence before using its values in Model\Mail
...
- Address https://github.com/friendica/friendica/issues/10474#issuecomment-925263894
2021-09-26 08:15:07 -04:00
Michael
96055cafff
Merge remote-tracking branch 'upstream/develop' into conversation-moved
2021-09-26 03:57:31 +00:00
Michael
a2532ad755
Merge remote-tracking branch 'upstream/develop' into user-contact
2021-09-26 03:07:59 +00:00
Hypolite Petovan
d8febbe45e
Add new hook to support unfollow contacts on non-native networks
2021-09-25 16:15:06 -04:00
Michael
3fddf3807a
Merge remote-tracking branch 'upstream/develop' into user-contact
2021-09-25 18:34:55 +00:00
Michael
0ad904c185
The conversation functionality moved to a class
2021-09-23 21:18:36 +00:00
Michael
f032f66b38
Display the public contacts for profile visitors
2021-09-19 10:06:42 +00:00
Michael
3dddea96fa
Merge remote-tracking branch 'upstream/2021.09-rc' into user-contact
2021-09-18 20:27:24 +00:00
Hypolite Petovan
24ecf5954c
Merge pull request #10721 from annando/issue-10720-avatar
...
Issue 10720: Use different path scheme for user avatars
2021-09-18 09:30:08 -04:00
Philipp
fd22906d70
Add feedback
2021-09-18 12:51:10 +02:00
Philipp
6893e2c3f7
Add feedback / revert fix for $item['post-type']
2021-09-18 12:51:09 +02:00
Philipp
462f76352e
Add feedback :-)
2021-09-18 12:51:09 +02:00
Philipp
644f312896
Fix various Notices
2021-09-18 12:51:06 +02:00
Michael
a91e3f5dbc
Issue 10720: Use different path scheme for user avatars
2021-09-17 18:36:20 +00:00
Michael
f99c4ca704
Removing unused variable
2021-09-14 08:08:50 +00:00
Michael
72fa4e9970
Better handling of displaying peertube videos
2021-09-14 07:52:53 +00:00
Michael
2926282f8d
More fields added to "user-contact"
2021-09-13 14:20:20 +00:00
Michael
3eea4b1130
Use "rel" for "self" instead of using a separate field
2021-09-12 19:04:27 +00:00
Michael
19c3e55ca8
Merge remote-tracking branch 'upstream/2021.09-rc' into user-contact
2021-09-12 12:36:04 +00:00
Michael
9191daf12f
Fix commenting on public posts
2021-09-12 01:52:10 +00:00
Michael
eeec6aaeb9
Removed unused "use"
2021-09-11 13:02:36 +00:00
Michael
1e123ace12
Only fetch, not probe
2021-09-11 13:00:12 +00:00
Michael
10cb52bc00
Only add user contacts, alternate way to fetch public contact id
2021-09-11 12:43:46 +00:00
Michael
5113987031
Added update function to add user-contact entry
2021-09-11 07:59:46 +00:00
Michael
f33a98578d
Capitalization
2021-09-10 23:59:33 +00:00
Michael
b170dd765d
Insert and update some more fields
2021-09-10 20:53:10 +00:00
Michael
2486c8031b
update for user-contact is added
2021-09-10 20:22:24 +00:00
Michael
9c14eb0c6b
Use centralized function to update contact entries
2021-09-10 18:21:19 +00:00
Michael
a4b0ab90b1
Insert a user-contact
for every contact
2021-09-10 13:05:16 +00:00
Philipp
fc46744183
Fix Photo::delete()
2021-09-05 19:20:43 +02:00
Michael
2bae4dde1f
Avoid notices
2021-08-30 12:29:09 +00:00
Michael
9135ff5124
Set contact to failed when url changed
2021-08-29 20:25:21 +00:00
Philipp
13a91e63aa
Rename DI::httpRequest() into DI::httpClient()
2021-08-25 21:54:54 +02:00
Philipp
505100bdd7
Rename HTTPRequestOptions to HTTPClientOptions
2021-08-25 21:45:15 +02:00
Philipp
0cafa871f1
Use HTTPRequestOptions constants for HTTPClient::get()
2021-08-25 21:31:30 +02:00
Philipp
aad7bac686
Use HTTPRequestOptions constants for HTTPClient::post()
2021-08-25 21:31:30 +02:00
Philipp
a3d0404290
Fix curResult::getHeader() in GServer.php
2021-08-25 14:22:43 +02:00
Philipp
2356221aba
Fixup HTTP headers for httpClient requests
2021-08-25 14:22:43 +02:00
Hypolite Petovan
e7fdf3c0c3
Merge pull request #10630 from annando/cleared-enotify
...
Unused parts of the old notification system are removed
2021-08-24 10:25:06 -04:00
Michael Vogel
9aca4b515f
Merge pull request #10628 from MrPetovan/bug/fatal-errors
...
Set profile fields for system user in Model\User::getOwnerDataById
2021-08-24 14:13:32 +02:00
Hypolite Petovan
ceeb246128
Remove Profile::load from Module\HCard
...
- Renamed and re-scoped Profile::sidebar to getVcardHtml
2021-08-24 06:24:06 -04:00
Hypolite Petovan
8f0e36d617
Raise an Exception when Profile::load is profided the system user nickname
2021-08-24 05:54:15 -04:00
Hypolite Petovan
e155821d7a
Set profile fields for system user in Model\User::getOwnerDataById
...
- Address https://github.com/friendica/friendica/issues/10473#issuecomment-903676606
- This is required when Model\Profile::load is called for the system user for example
2021-08-24 05:53:46 -04:00
Michael
429a724bc1
Unused parts of the old notification system are removed
2021-08-24 08:53:15 +00:00
Hypolite Petovan
0651ace4e4
Merge pull request #10627 from annando/like-announce
...
Reliably display "like" and "share" notifications
2021-08-23 14:12:57 -04:00
Michael
c78b7f45c5
Reliably diasplay "like" and "share" notifications
2021-08-23 15:07:14 +00:00
Hypolite Petovan
2108be7e07
Merge pull request #10619 from nupplaphil/task/guzzlehttp
...
PSR-7 Part 1: Use Guzzle PSR-7 library for HTTPRequest->get()
2021-08-22 18:11:30 -04:00
Michael
e9c63ff075
Added "follow" subscription message
2021-08-22 08:27:56 +00:00
Michael
59045b2e23
Added handling another situation
2021-08-22 03:58:50 +00:00
Michael
4f1e61457d
Fetch the user's post if present
2021-08-21 21:40:47 +00:00
Michael
42de5c77d0
The desktop notifications have been reworked
2021-08-21 20:35:04 +00:00
Philipp
653d49cb92
Fix getHeader()
2021-08-20 22:00:28 +02:00
Philipp
65ca164487
A lot of Fixings
2021-08-20 21:35:14 +02:00
Philipp
06371d29a6
Cleanup
2021-08-20 20:03:42 +02:00
Philipp
26401e88b8
IHTTPResult::getContentType is now a string again
2021-08-20 19:58:42 +02:00
Philipp
803c1d71de
Fix IHTTPResult::getHeader()
...
- Now returns a string array, like expected
- Fix usages
- Fix dataset
2021-08-20 19:58:42 +02:00
Philipp
05ecd1e3d4
Replace IHTTPResult for CurlResult usages
2021-08-20 19:58:42 +02:00
Hypolite Petovan
632d1024f7
Merge pull request #10309 from fabrixxm/feature/advanced-logsview
...
Display structured logs in admin
2021-08-20 05:24:07 -04:00
fabrixxm
3766204b05
Fix code standard
2021-08-20 11:09:35 +02:00
fabrixxm
7f695197aa
Fix review points
...
- Fix headers hierarchy
- Improve accessibility:
- set mouse pointer
- make rows focusable
- open on key press
- add tooltip with "title"
- add role and aria attributes
- Rename `ParsedLog` to `ParsedLogLine`
- Add docs to `ReversedFileReader`'s implementation of `Iterator`'s methods
- Add docs to `ParsedLogIterator`'s implementation of `Iterator`'s methods
- Remove unnecessary comment
- Add more test for parsing log lines and fix some edge cases
- Fix function name in snake-case to camelCase
- Remove `DIRECTORY_SEPARATOR`
2021-08-20 11:02:18 +02:00
Michael
c0d187f281
Added "causer" and "notification" for the "ping" mechanism
2021-08-19 14:57:35 +00:00
Michael
6899d3c618
Meaningful notification message
2021-08-19 13:58:55 +00:00
fabrixxm
ec4f53d56f
Add DI to ParsedLogIterator, replace constructors with fluent api
2021-08-19 14:56:51 +02:00
fabrixxm
84fa668845
Fix code formatting
2021-08-19 14:55:33 +02:00
fabrixxm
5b9aeeeca9
Add search and filter to log view
2021-08-19 14:55:33 +02:00
fabrixxm
9368f5445d
Display structured logs in admin
...
Tries to parse log lines and to display info in a table.
Additional JSON data is parsed and displayed clicking on a row.
File reading and line parsing is handled in iterators, to avoid to keep
too much data in memory.
Search and filter should be trivial to add.
Log file is read backward to display log events newest first.
A "tail" functionality should be easy to implement.
2021-08-19 14:55:33 +02:00
Tobias Diekershoff
e1c961cc64
Merge pull request #10607 from MrPetovan/task/advancecontentfilter-attachments
...
Add the attachments to the $item for the prepare_body_content_filter hook
2021-08-17 12:40:49 +02:00
Philipp
02a4d30f7d
Add todo for later
2021-08-16 23:27:43 +02:00
Philipp
1df6225868
Update src/Model/Storage/Filesystem.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-08-16 23:27:42 +02:00
Philipp
f4941b5b49
Update src/Model/Storage/IWritableStorage.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-08-16 23:27:42 +02:00
Philipp
c17bc55158
Introduce InvalidClassStorageException and adapt the code for it
2021-08-16 23:27:42 +02:00
Philipp
d0536ebea7
Rename ISelectableStorage to IWritableStorage
2021-08-16 23:27:42 +02:00
Philipp
eb035771f1
Revert Photo::getImageDataForPhoto return-type change
2021-08-16 23:27:42 +02:00
Philipp
57438afbb3
- Moved the description for the specific storage exception first
...
- Introduced exceptions for try to get invalid storage
- ReferenceStorageException now extends StorageException
2021-08-16 23:27:42 +02:00
Philipp
470ba8b61b
Fixup Database behaviour
2021-08-16 23:27:42 +02:00
Philipp
90c99520bb
Fix Storage Exceptions
2021-08-16 23:27:42 +02:00
Philipp
29c7552df5
Refactor IStorage
2021-08-16 23:27:42 +02:00
Philipp
5dcdf2322e
Split IStorage and ISelectableStorage and make their behaviour homogenous
2021-08-16 23:27:41 +02:00
Michael
7158b35f58
Added logging, removed superfluous comments
2021-08-16 15:23:34 +00:00
Hypolite Petovan
7082582655
Add the attachments to the $item for the prepare_body_content_filter hook
...
- Allows filtering on attachments that are added later to the post content
2021-08-16 05:28:08 -04:00
Michael
c85ce2f6b0
Add a payload
2021-08-16 06:11:26 +00:00
Michael
69c816eb17
Trim whitespace
2021-08-15 22:09:32 +00:00
Michael
e3f8f371a7
Use the existing VAPID key generation
2021-08-15 21:54:24 +00:00
Michael
69f11c4a84
Adding the VAPID keys
2021-08-15 21:24:23 +00:00
Michael
977d28353c
Transmit push subscriptions
2021-08-15 20:52:46 +00:00
Michael
c78d490c2e
Some more standards
2021-08-15 16:24:12 +00:00
Michael
f29cef175e
Remove spaces
2021-08-15 16:22:23 +00:00
Michael
19f3cad56c
Preparation for creating push notification
2021-08-15 16:18:25 +00:00
Michael
5056376902
We need to create a vapid public and private key
2021-08-15 12:57:29 +00:00
Michael
74f3cbc383
Improved error check, added "put"
2021-08-15 07:28:26 +00:00
Michael
167a12ef54
Styling
2021-08-15 00:43:07 +00:00
Michael
e28a4265c5
API: First steps to support subscriptions
2021-08-15 00:30:41 +00:00
Michael
ce46ab2573
The Matrix and XMPP address is now transported via AP as well
2021-08-10 23:49:09 +00:00
Michael
8e074a5fe4
Simplify event storing
2021-08-10 10:24:14 +00:00
Michael
15b93b4459
"getUserNickname" is now "getLoggedInUserNickname"
2021-08-09 19:48:39 +00:00
Michael
4495e83eca
Merge remote-tracking branch 'upstream/develop' into app-user2
2021-08-09 15:32:32 +00:00
Michael
b8fa75b2dd
Changed function name
2021-08-09 15:29:07 +00:00
Michael
bee04f86ee
Matrix addresses can be entered in the profile
2021-08-09 01:39:09 +00:00
Michael
28090bd793
Get rid of App->user completely
2021-08-08 19:30:21 +00:00
Michael
fc283ab928
Remove direct calls to App->user
2021-08-08 10:14:56 +00:00
Michael
9664efd66b
Added some description
2021-08-07 20:09:25 +00:00
Michael
6a23b17c95
Respect the postopts values for scheduled posts
2021-08-06 18:49:17 +00:00
Michael
4bc3e8c141
Don't send "accept" when we accept anything
2021-08-06 04:02:22 +00:00
Michael
835152d418
Simplified signature creation
2021-08-05 08:42:46 +00:00
Michael
a26a2a0228
Make the system owner ready for Diaspora
2021-08-05 08:30:44 +00:00
Michael Vogel
c73130aa6b
Create the Diaspora signature for the correct user
2021-08-05 08:58:50 +02:00
Michael
ec3eead034
Don't set the pconfig values on manual mode
2021-08-03 05:39:04 +00:00
Michael
6c8a4a2552
Use a centralized function to delete delayed entries
2021-08-02 20:56:34 +00:00
Michael
2e2d1bf81d
Added option to define a schedule date when posting items
2021-08-01 13:01:31 +00:00
Michael
929de9081e
All needed fields are now filled
2021-07-30 13:22:06 +00:00
Michael
4137a6250b
Delayed now return their id on insert
2021-07-30 06:20:10 +00:00
Michael
5e75ba3083
guid function is now public
2021-07-30 06:19:25 +00:00
Michael
a1828430e5
Fixing variables
2021-07-29 14:58:04 +00:00
Michael
20e69c1e71
Return as array
2021-07-29 10:46:40 +00:00
Michael
6ea3d4aa61
Added API calls, removed fields
2021-07-29 10:34:31 +00:00
Michael
fbbe9a3c1f
"wid" is not an item field
2021-07-29 03:57:37 +00:00
Michael
2951243b07
Preparation for delayed posts
2021-07-28 22:22:00 +00:00
Hypolite Petovan
dfb043ce60
Add Exception for empty User::getOwnerDataById(0 return case in Protocol\ActivityPub\Transmitter::getProfile()
...
- Address https://github.com/friendica/friendica/issues/10473#issuecomment-882781552
- Add try-catch blocks to all references of Protocol\ActivityPub\Transmitter::getProfile()
2021-07-27 16:46:08 -04:00
Michael
9226b98724
Performance: Moved filter call after content generation
2021-07-27 12:24:22 +00:00
Michael
c89533a70b
Support for stacked profiler analysis
2021-07-27 04:57:29 +00:00
Michael
5a87ccf026
Getter/Setter for theme info
2021-07-25 19:39:10 +00:00
Michael
866dbf9f89
Use getter/setter for timezone value
2021-07-24 21:16:53 +00:00
Michael
8f46064430
Using getter/setter functions
2021-07-24 20:34:07 +00:00
Michael
d56793dd09
Fix field name
2021-07-24 13:24:26 +00:00
Michael
30aad250df
App->contact is now removed
2021-07-24 11:49:11 +00:00
Michael
0fe5759d8a
Fixed avatar fetching for mail and feed
2021-07-24 10:32:55 +00:00
Michael
2502a9192d
Many more app-variables removed
2021-07-24 10:09:39 +00:00
Michael
c17e1d7e0b
Removed unused code from the profile sidebar
2021-07-23 13:05:53 +00:00
Michael
afe3c8954c
Simplified functionality to load the profile in the sidebar
2021-07-23 12:39:37 +00:00
Michael
bb222209bc
Some small performance tweaks
2021-07-22 15:35:30 +00:00
Michael
69c6a5f567
Avoid "DB Error" messages
2021-07-21 03:43:30 +00:00
RealKinetix
cf32a4b7cc
Sanitize negative status count on APContact
...
Similar to PR #10499 , Mastodon apparently has some counting flaws and
can present a negative status count for a user, causing Friendica to
fail (at least under PHP 8) with:
[20-Jul-2021 16:35:18 UTC] PHP Fatal error: Uncaught PDOException: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'statuses_count' at row 1 in /home/friendicadev/friendica/src/Database/Database.php:560
Stack trace:
thrown in /home/friendicadev/friendica/src/Database/Database.php on line 560
This change prevents values lower than 0 from being assigned to
statuses_count.
2021-07-20 10:11:04 -07:00
Hypolite Petovan
f3131c6277
Manually add Persian to post body language detection
2021-07-19 14:00:31 -04:00
Michael
d2408c1f1b
Merge remote-tracking branch 'upstream/develop' into loop-prevention
2021-07-19 12:07:34 +00:00
Michael
64026ed979
Simplify code
2021-07-19 12:07:02 +00:00
Michael
58cec97358
Merge remote-tracking branch 'upstream/develop' into loop-prevention
2021-07-19 07:51:29 +00:00
Michael
2647514603
Detection of local requests
2021-07-19 06:14:14 +00:00
Michael
aa6313dee6
Improved detection for a local contact
2021-07-19 04:15:57 +00:00
Michael
424a85bb94
Fetch local data without HTTP requests
2021-07-18 18:54:25 +00:00
Michael
d8bf9c4601
Prevent loop also when fetching the outbox
2021-07-18 16:42:55 +00:00
Michael
2030691f9f
Improved event storing / improved performance when fetching events
2021-07-18 15:05:46 +00:00
Michael
ea056b93fa
Fix notice in events
2021-07-17 20:27:18 +00:00
Michael
dd2abf254d
Issue 10506 - again. Improved check for pictured in body
2021-07-17 07:55:19 +00:00
Michael
596bb9fa7c
Fixed wrong parameter
2021-07-17 05:25:04 +00:00
Michael
89f7ee2cc5
Prevent endless loop when updating contact by probe
2021-07-17 04:57:21 +00:00
Michael
feab53b58b
Issue 10506: Fix for multiple picture posts
2021-07-17 04:32:46 +00:00
Hypolite Petovan
4dc6b29046
Merge pull request #10503 from annando/no-legacy-dfrn
...
Legacy DFRN transport layer is removed
2021-07-15 16:24:07 -04:00
Michael
c1e681e007
Improved comment
2021-07-15 17:42:03 +00:00
Michael
3a5523820c
Legacy DFRN transport layer is removed
2021-07-15 13:28:32 +00:00
RealKinetix
a0107be2af
Negative numbers in following is a thing too
...
Check & sanitize 'following' as well, as per:
https://mastodon.social/@BLUW
2021-07-14 13:51:30 -07:00
RealKinetix
f16b1df83f
Adjust where the code is to avoid empty warning
...
Shifted the code to avoid:
PHP Warning: Undefined array key "totalItems" in /home/friendicadev/friendica/src/Model/APContact.php on line 277
2021-07-14 13:46:38 -07:00
RealKinetix
c1db1c980e
Fix indent to standards
2021-07-14 12:17:03 -07:00
RealKinetix
2ebebe9abc
Sanitize negative followers count on APContact
...
Please see
https://github.com/friendica/friendica/issues/9498#issuecomment-818894106
and related discussion regarding this - it appears it's possible for AP
users, maybe just Mastodon users, to have a negative followers count.
This causes fatal errors in Friendica, so I think we should sanitize
this input.
2021-07-14 10:15:19 -07:00
Michael
0277589fbd
Removed experimental code
2021-07-14 02:59:29 +00:00
Michael
6fceab0cc8
Merge remote-tracking branch 'upstream/develop' into subscribe
2021-07-14 02:54:12 +00:00
Michael
1466afe3b2
Automatically subscribe to the followings of a given AP account
2021-07-13 06:06:08 +00:00
Michael
e5c312a066
Issue 10491: Possibility for simple shortening added
2021-07-12 14:11:51 +00:00
Michael
e151a2dc41
Fixes "Undefined index: nick"
2021-07-12 06:25:48 +00:00
Michael
d267ba999c
We now use the new account-user-view (and fixed the function name)
2021-07-11 09:39:34 +00:00
Michael
b46b88cc10
Fix fatal error
2021-07-10 21:08:55 +00:00
Michael
07d2dfcd60
Some more "convertForUriId" replacements
2021-07-10 12:58:48 +00:00
Michael
e0fdde3287
Fix the tests, hopefully
2021-07-09 17:13:54 +00:00
Michael
04580ad4fb
Don't update automatically to make tests happy
2021-07-09 16:20:22 +00:00
Michael
0735a22cdd
Fix notice "undefined index: uri"
2021-07-09 14:52:22 +00:00
Michael
9ac284ec3a
Update on empty uri-id
2021-07-09 08:46:42 +00:00
Michael
6e79da0b0c
The uri-id is now in all contact tables
2021-07-09 07:09:33 +00:00
Michael
c63d3f4604
Fix tests
2021-07-09 06:37:45 +00:00
Michael
d8974c9a2a
Function renamed to better reflect the functionality
2021-07-09 06:29:24 +00:00
Michael
88f147c6a7
Always update on missing uri-id, check for uri-id in contact before removal
2021-07-09 04:38:36 +00:00
Michael
901c3f4855
we now have got an uri-id field for the contact table
2021-07-08 18:59:58 +00:00
Michael
178bc543e3
New founction to count threads
2021-07-08 17:32:41 +00:00
Michael
c972cce740
Avoid notice
2021-07-08 16:38:02 +00:00
Michael
165c6ddc63
"convert" changed to "convertForItem"
2021-07-08 15:41:46 +00:00
Michael
f29bd23ea8
New function to convert BBCode for a given ID
2021-07-08 13:47:46 +00:00
Michael
f3452d86c4
Improved logging, improved link check
2021-07-06 17:40:40 +00:00
Michael
ecf0b67d9d
Just look at HTTP links
2021-07-06 16:10:10 +00:00
Michael
234bdff7ab
Improved link check
2021-07-06 15:06:15 +00:00
Michael
098cd543ea
Cleaned code for contact avatars
2021-07-06 10:36:00 +00:00