friendica.git/.git
3 years agoAdd BBCode test for issue #9639
Hypolite Petovan [Fri, 18 Dec 2020 16:11:48 +0000 (11:11 -0500)]
Add BBCode test for issue #9639

3 years agoRestore Mastodon emoji span classes
Hypolite Petovan [Fri, 18 Dec 2020 15:37:25 +0000 (10:37 -0500)]
Restore Mastodon emoji span classes

- Fix typo in replacement of [class] tag

3 years agoMerge pull request #9674 from MrPetovan/bug/9673-general-information
Michael Vogel [Fri, 18 Dec 2020 05:40:06 +0000 (06:40 +0100)]
Merge pull request #9674 from MrPetovan/bug/9673-general-information

Add general information header translation to admin site template

3 years agoRegenerate main translation file after adding translation string
Hypolite Petovan [Fri, 18 Dec 2020 03:52:51 +0000 (22:52 -0500)]
Regenerate main translation file after adding translation string

3 years agoAdd general information header translation to admin site template
Hypolite Petovan [Fri, 18 Dec 2020 03:52:30 +0000 (22:52 -0500)]
Add general information header translation to admin site template

3 years agoMerge pull request #9671 from annando/insert-ignore
Hypolite Petovan [Thu, 17 Dec 2020 19:59:43 +0000 (14:59 -0500)]
Merge pull request #9671 from annando/insert-ignore

Avoid "Duplicate entry"

3 years agoAvoid "Duplicate entry"
Michael [Thu, 17 Dec 2020 18:56:10 +0000 (18:56 +0000)]
Avoid "Duplicate entry"

3 years agoMerge pull request #9670 from annando/notice
Hypolite Petovan [Thu, 17 Dec 2020 18:19:16 +0000 (13:19 -0500)]
Merge pull request #9670 from annando/notice

Fix notices

3 years agoFix notices
Michael [Thu, 17 Dec 2020 18:08:07 +0000 (18:08 +0000)]
Fix notices

3 years agoMerge pull request #9668 from annando/keywarning
Hypolite Petovan [Thu, 17 Dec 2020 13:25:25 +0000 (08:25 -0500)]
Merge pull request #9668 from annando/keywarning

Fix warning "supplied key param cannot be coerced into a public key"

3 years agoMerge pull request #9667 from annando/profiler-network
Hypolite Petovan [Thu, 17 Dec 2020 13:24:09 +0000 (08:24 -0500)]
Merge pull request #9667 from annando/profiler-network

Store the network profiler data

3 years agoDelete tombstone contacts
Michael [Thu, 17 Dec 2020 08:00:56 +0000 (08:00 +0000)]
Delete tombstone contacts

3 years agoFix warning "supplied key param cannot be coerced into a public key"
Michael [Thu, 17 Dec 2020 07:07:54 +0000 (07:07 +0000)]
Fix warning "supplied key param cannot be coerced into a public key"

3 years agoStore the network profiler data
Michael [Thu, 17 Dec 2020 06:23:03 +0000 (06:23 +0000)]
Store the network profiler data

3 years agoMerge pull request #9664 from annando/delete-contacts
Hypolite Petovan [Wed, 16 Dec 2020 16:28:56 +0000 (11:28 -0500)]
Merge pull request #9664 from annando/delete-contacts

Delete removed contacts

3 years agoIndentation
Michael [Wed, 16 Dec 2020 15:43:12 +0000 (15:43 +0000)]
Indentation

3 years agoDelete removed contacts
Michael [Tue, 15 Dec 2020 22:56:46 +0000 (22:56 +0000)]
Delete removed contacts

3 years agoMerge pull request #9661 from MrPetovan/bug/9651-apdelivery-inboxes
Michael Vogel [Tue, 15 Dec 2020 21:05:59 +0000 (22:05 +0100)]
Merge pull request #9661 from MrPetovan/bug/9651-apdelivery-inboxes

Clarify usage of ActivityPub\Transmitter::fetchTargetInboxes in Worker\APDelivery queuing

3 years agoRemove reference to receivers when adding relay delivery tasks in Worker\Notifier
Hypolite Petovan [Tue, 15 Dec 2020 20:42:16 +0000 (15:42 -0500)]
Remove reference to receivers when adding relay delivery tasks in Worker\Notifier

- Address https://github.com/friendica/friendica/pull/9661#issuecomment-745553051

3 years agoMerge pull request #9663 from MrPetovan/bug/9662-deleted-users-still-post
Michael Vogel [Tue, 15 Dec 2020 19:57:10 +0000 (20:57 +0100)]
Merge pull request #9663 from MrPetovan/bug/9662-deleted-users-still-post

Add item user owner data check in Model\Item::isValid

3 years agoRemove owner.deleted check in user deletion check in Model/Item
Hypolite Petovan [Tue, 15 Dec 2020 19:24:42 +0000 (14:24 -0500)]
Remove owner.deleted check in user deletion check in Model/Item

3 years agoAdd item user owner data check in Model\Item::isValid
Hypolite Petovan [Tue, 15 Dec 2020 14:41:58 +0000 (09:41 -0500)]
Add item user owner data check in Model\Item::isValid

- Prevents deleted users from posting any item, manually or automatically through mirroring

3 years agoRename Model\User::getOwnerDataById parameter to better reflect intent
Hypolite Petovan [Tue, 15 Dec 2020 14:41:10 +0000 (09:41 -0500)]
Rename Model\User::getOwnerDataById parameter to better reflect intent

3 years agoAdd temporary console command to fix workerqueue row with corrupted parameter data
Hypolite Petovan [Tue, 15 Dec 2020 05:20:49 +0000 (00:20 -0500)]
Add temporary console command to fix workerqueue row with corrupted parameter data

- It should be reverted just before the 2020.12 release

3 years agoClarify usage of ActivityPub\Transmitter::fetchTargetInboxes in Worker\APDelivery...
Hypolite Petovan [Tue, 15 Dec 2020 04:33:14 +0000 (23:33 -0500)]
Clarify usage of ActivityPub\Transmitter::fetchTargetInboxes in Worker\APDelivery queuing

- $inbox is now always a string
- $receivers should be correctly populated now
- $target_id is renamed to $item_id and correctly initialized to 0 for non-item deliveries

3 years agoMerge pull request #9655 from MrPetovan/bug/fatal-errors
Michael Vogel [Mon, 14 Dec 2020 21:11:45 +0000 (22:11 +0100)]
Merge pull request #9655 from MrPetovan/bug/fatal-errors

Fix several occasional fatal errors

3 years agoAccount for inbox array in Worker/APDelivery
Hypolite Petovan [Mon, 14 Dec 2020 14:10:43 +0000 (09:10 -0500)]
Account for inbox array in Worker/APDelivery

- Address https://github.com/friendica/friendica/issues/9250#issuecomment-744339671

3 years agoMerge pull request #9658 from annando/issue-9657
Hypolite Petovan [Mon, 14 Dec 2020 03:31:10 +0000 (22:31 -0500)]
Merge pull request #9658 from annando/issue-9657

Issue 9657: Check the age of an item

3 years agoIssue 9657: Check the age of an item
Michael [Mon, 14 Dec 2020 00:00:10 +0000 (00:00 +0000)]
Issue 9657: Check the age of an item

3 years agoReturn early if an URI id cannot be obtained in ActivityPub\Processor::createItem
Hypolite Petovan [Sun, 13 Dec 2020 18:42:08 +0000 (13:42 -0500)]
Return early if an URI id cannot be obtained in ActivityPub\Processor::createItem

- Address https://github.com/friendica/friendica/issues/9250#issuecomment-743769813

3 years agoMerge pull request #9654 from annando/delayed-unprepared
Hypolite Petovan [Sun, 13 Dec 2020 18:34:42 +0000 (13:34 -0500)]
Merge pull request #9654 from annando/delayed-unprepared

Support for unprepared delayed posts

3 years agoFix: posted unprepared posts hadn't been deleted
Michael [Sun, 13 Dec 2020 18:17:50 +0000 (18:17 +0000)]
Fix: posted unprepared posts hadn't been deleted

3 years agoSet the return value
Michael [Sun, 13 Dec 2020 17:22:50 +0000 (17:22 +0000)]
Set the return value

3 years agoAccount for missing contact in dfrn_request_post
Hypolite Petovan [Sun, 13 Dec 2020 17:18:10 +0000 (12:18 -0500)]
Account for missing contact in dfrn_request_post

- Address https://github.com/friendica/friendica/issues/9250#issuecomment-743407998

3 years agoSimplify Contact::addRelationship call in ActivityPub\Processor::followUser
Hypolite Petovan [Sun, 13 Dec 2020 17:16:04 +0000 (12:16 -0500)]
Simplify Contact::addRelationship call in ActivityPub\Processor::followUser

- Address https://github.com/friendica/friendica/issues/9250#issuecomment-743382769

3 years agoAdded logging
Michael [Sun, 13 Dec 2020 16:38:12 +0000 (16:38 +0000)]
Added logging

3 years agoDelay unprepared posts
Michael [Sun, 13 Dec 2020 12:47:49 +0000 (12:47 +0000)]
Delay unprepared posts

3 years agoMerge pull request #9652 from annando/issue-9584
Hypolite Petovan [Sat, 12 Dec 2020 20:13:31 +0000 (15:13 -0500)]
Merge pull request #9652 from annando/issue-9584

Issue 9584: Only search posts from federated networks

3 years agoMerge pull request #9651 from annando/ap-archive
Hypolite Petovan [Sat, 12 Dec 2020 20:12:54 +0000 (15:12 -0500)]
Merge pull request #9651 from annando/ap-archive

Archive/Unarchive at ActivityPub delivery

3 years agoIssue 9584: Only search posts from federated networks
Michael [Sat, 12 Dec 2020 19:55:47 +0000 (19:55 +0000)]
Issue 9584: Only search posts from federated networks

3 years agoArchive/Unarchive at ActivityPub delivery
Michael [Sat, 12 Dec 2020 16:45:23 +0000 (16:45 +0000)]
Archive/Unarchive at ActivityPub delivery

3 years agoMerge pull request #9647 from annando/original-relay
Hypolite Petovan [Fri, 11 Dec 2020 21:17:05 +0000 (16:17 -0500)]
Merge pull request #9647 from annando/original-relay

Relay posts with the original protocol

3 years agoMerge pull request #9648 from annando/issue-9633
Hypolite Petovan [Fri, 11 Dec 2020 21:16:31 +0000 (16:16 -0500)]
Merge pull request #9648 from annando/issue-9633

Issue 9633: Avoid contact lookup in conversation to avoid long loading times

3 years agoStandards
Michael [Fri, 11 Dec 2020 20:20:27 +0000 (20:20 +0000)]
Standards

3 years agoIssue 9633: Avoid contact lookup in conversation to avoid long loading times
Michael Vogel [Fri, 11 Dec 2020 14:16:29 +0000 (15:16 +0100)]
Issue 9633: Avoid contact lookup in conversation to avoid long loading times

3 years agoRelay posts with the original protocol
Michael [Fri, 11 Dec 2020 06:35:38 +0000 (06:35 +0000)]
Relay posts with the original protocol

3 years agoMerge pull request #9645 from MrPetovan/bug/fatal-errors
Tobias Diekershoff [Thu, 10 Dec 2020 13:05:03 +0000 (14:05 +0100)]
Merge pull request #9645 from MrPetovan/bug/fatal-errors

Normalize return value in Database->fetch

3 years agoNormalize return value in Database->fetch
Hypolite Petovan [Thu, 10 Dec 2020 11:12:10 +0000 (06:12 -0500)]
Normalize return value in Database->fetch

- Address https://github.com/friendica/friendica/issues/9250#issuecomment-741857058

3 years agoMerge pull request #9644 from annando/dfrn-deletions
Hypolite Petovan [Thu, 10 Dec 2020 08:39:40 +0000 (03:39 -0500)]
Merge pull request #9644 from annando/dfrn-deletions

Critical: Avoid dropping of incoming DFRN messages

3 years agoAvoid dropping of incoming DFRN messages
Michael [Thu, 10 Dec 2020 07:22:49 +0000 (07:22 +0000)]
Avoid dropping of incoming DFRN messages

3 years agoMerge pull request #9643 from annando/profiler
Hypolite Petovan [Thu, 10 Dec 2020 02:06:32 +0000 (21:06 -0500)]
Merge pull request #9643 from annando/profiler

Improved performance profiler

3 years agoParameters should be float ...
Michael [Thu, 10 Dec 2020 00:02:23 +0000 (00:02 +0000)]
Parameters should be float ...

3 years agoImproved performance profiler
Michael [Wed, 9 Dec 2020 22:10:27 +0000 (22:10 +0000)]
Improved performance profiler

3 years agoMerge pull request #9638 from annando/bad-priority
Hypolite Petovan [Wed, 9 Dec 2020 06:12:34 +0000 (01:12 -0500)]
Merge pull request #9638 from annando/bad-priority

Check for bad worker priorities

3 years agoApply suggestions from code review
Michael Vogel [Wed, 9 Dec 2020 05:58:19 +0000 (06:58 +0100)]
Apply suggestions from code review

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
3 years agoMerge pull request #9635 from MrPetovan/bug/notices
Michael Vogel [Wed, 9 Dec 2020 05:51:54 +0000 (06:51 +0100)]
Merge pull request #9635 from MrPetovan/bug/notices

Batch of notice fixes

3 years agoMerge pull request #9637 from annando/db-error
Hypolite Petovan [Wed, 9 Dec 2020 05:07:04 +0000 (00:07 -0500)]
Merge pull request #9637 from annando/db-error

Fixes "Unknown column '729' in 'field list'"

3 years agoCheck for bad worker priorities
Michael [Tue, 8 Dec 2020 21:58:32 +0000 (21:58 +0000)]
Check for bad worker priorities

3 years agoFixes "Unknown column '729' in 'field list'"
Michael [Tue, 8 Dec 2020 21:23:10 +0000 (21:23 +0000)]
Fixes "Unknown column '729' in 'field list'"

3 years agoCheck for the existence of array key before using it in Protocol\ActivityPub\Transmitter
Hypolite Petovan [Tue, 8 Dec 2020 15:08:49 +0000 (10:08 -0500)]
Check for the existence of array key before using it in Protocol\ActivityPub\Transmitter

- Address https://github.com/friendica/friendica/issues/9252#issuecomment-739534960

3 years agoSuppress notice message when guid isn't supplied in Module\Admin\Item\Source
Hypolite Petovan [Tue, 8 Dec 2020 15:00:09 +0000 (10:00 -0500)]
Suppress notice message when guid isn't supplied in Module\Admin\Item\Source

- https://github.com/friendica/friendica/issues/9252#issuecomment-740052103

3 years agoUse App\Arguments instead of App->args in theme/vier/theme
Hypolite Petovan [Tue, 8 Dec 2020 14:57:58 +0000 (09:57 -0500)]
Use App\Arguments instead of App->args in theme/vier/theme

- Address https://github.com/friendica/friendica/issues/9252#issuecomment-740069639

3 years agoMerge pull request #9632 from annando/get-default-avatar
Hypolite Petovan [Mon, 7 Dec 2020 07:44:48 +0000 (02:44 -0500)]
Merge pull request #9632 from annando/get-default-avatar

Centralized fetching of the default avatar

3 years agoCheck for remote default avatars as well
Michael [Mon, 7 Dec 2020 07:14:09 +0000 (07:14 +0000)]
Check for remote default avatars as well

3 years agoCentralized fetching of the default avatar
Michael [Mon, 7 Dec 2020 06:43:43 +0000 (06:43 +0000)]
Centralized fetching of the default avatar

3 years agoMerge pull request #9631 from annando/issue-9630
Hypolite Petovan [Sun, 6 Dec 2020 23:38:03 +0000 (18:38 -0500)]
Merge pull request #9631 from annando/issue-9630

Issue 9630: Prevent negative values for registered users

3 years agoIssue 9630: Prevent negative values for registered users
Michael [Sun, 6 Dec 2020 18:14:05 +0000 (18:14 +0000)]
Issue 9630: Prevent negative values for registered users

3 years agoMerge pull request #9626 from MrPetovan/bug/9611-bbcode-convert-html-purify
Michael Vogel [Sun, 6 Dec 2020 14:53:18 +0000 (15:53 +0100)]
Merge pull request #9626 from MrPetovan/bug/9611-bbcode-convert-html-purify

Prevents share block new lines from being converted to HTML <br> tags

3 years agoEnable back references in reg exp in BBCode::convert
Hypolite Petovan [Sun, 6 Dec 2020 13:57:06 +0000 (08:57 -0500)]
Enable back references in reg exp in BBCode::convert

- Bump BBCode version

3 years agoMerge pull request #9628 from annando/dfrn-delete
Hypolite Petovan [Sun, 6 Dec 2020 13:37:50 +0000 (08:37 -0500)]
Merge pull request #9628 from annando/dfrn-delete

Don't create the parent during a deletion

3 years agoDon't create the parent during a deletion
Michael [Sun, 6 Dec 2020 09:54:34 +0000 (09:54 +0000)]
Don't create the parent during a deletion

3 years agoPrevents share block new lines from being converted to HTML <br> tags
Hypolite Petovan [Sun, 6 Dec 2020 00:55:01 +0000 (19:55 -0500)]
Prevents share block new lines from being converted to HTML <br> tags

- Address https://github.com/friendica/friendica/pull/9621#issuecomment-739333767

3 years agoMerge pull request #9623 from annando/removed-unused
Hypolite Petovan [Sun, 6 Dec 2020 00:33:39 +0000 (19:33 -0500)]
Merge pull request #9623 from annando/removed-unused

Remove unused contacts

3 years agoCode standards
Michael [Sat, 5 Dec 2020 21:58:15 +0000 (21:58 +0000)]
Code standards

3 years agoRemove unused contacts
Michael [Sat, 5 Dec 2020 21:07:48 +0000 (21:07 +0000)]
Remove unused contacts

3 years agoMerge pull request #9621 from MrPetovan/bug/9611-bbcode-convert-html-purify
Michael Vogel [Sat, 5 Dec 2020 18:27:59 +0000 (19:27 +0100)]
Merge pull request #9621 from MrPetovan/bug/9611-bbcode-convert-html-purify

Add HTML Purify to BBCode::convert

3 years agoMerge pull request #9620 from annando/worker-command
Hypolite Petovan [Fri, 4 Dec 2020 13:36:35 +0000 (08:36 -0500)]
Merge pull request #9620 from annando/worker-command

The worker now has got a "command" field

3 years agoMove BBCode version tagging inside of the hash to prevent item-content.rendered-hash...
Hypolite Petovan [Fri, 4 Dec 2020 12:55:48 +0000 (07:55 -0500)]
Move BBCode version tagging inside of the hash to prevent item-content.rendered-hash overflow

3 years agoAdd BBCode versioning
Hypolite Petovan [Fri, 4 Dec 2020 12:29:08 +0000 (07:29 -0500)]
Add BBCode versioning

- This will trigger the re-conversion of displayed items on version update

3 years agoAdd some more result panels to Babel
Hypolite Petovan [Fri, 4 Dec 2020 12:28:18 +0000 (07:28 -0500)]
Add some more result panels to Babel

3 years agoAdd HTML Purify to BBCode::convert
Hypolite Petovan [Fri, 4 Dec 2020 12:27:13 +0000 (07:27 -0500)]
Add HTML Purify to BBCode::convert

- Replace previous HTML cleanup using DOMDocument
- Remove obsolete HTML::sanitizeCSS method
- Use Strings::autoLinkRegEx for PageInfo::getRelevantUrlFromBody
- Update previous tests expectations
- Add new specific XSS tests

3 years ago[Composer] Add xemlock/htmlpurifier-html5 dependency
Hypolite Petovan [Thu, 3 Dec 2020 15:31:43 +0000 (10:31 -0500)]
[Composer] Add xemlock/htmlpurifier-html5 dependency

3 years ago2020.12-rc
Tobias Diekershoff [Fri, 4 Dec 2020 09:09:24 +0000 (10:09 +0100)]
2020.12-rc

3 years agoImproved logging
Michael [Fri, 4 Dec 2020 07:54:29 +0000 (07:54 +0000)]
Improved logging

3 years agoMoved updating personal contacts to updatecontact
Michael [Fri, 4 Dec 2020 05:53:11 +0000 (05:53 +0000)]
Moved updating personal contacts to updatecontact

3 years agoCheck and add a server
Michael [Thu, 3 Dec 2020 22:32:51 +0000 (22:32 +0000)]
Check and add a server

3 years agoUpdates database version
Michael [Thu, 3 Dec 2020 15:50:14 +0000 (15:50 +0000)]
Updates database version

3 years agoMerge remote-tracking branch 'upstream/develop' into worker-command
Michael [Thu, 3 Dec 2020 15:48:46 +0000 (15:48 +0000)]
Merge remote-tracking branch 'upstream/develop' into worker-command

3 years agoworkerqueue now has a "command" field
Michael [Thu, 3 Dec 2020 15:47:50 +0000 (15:47 +0000)]
workerqueue now has a "command" field

3 years agoMerge pull request #9618 from annando/posting-interval
Hypolite Petovan [Thu, 3 Dec 2020 15:20:47 +0000 (10:20 -0500)]
Merge pull request #9618 from annando/posting-interval

Minimum posting interval

3 years agoChaning wording
Michael [Wed, 2 Dec 2020 14:55:57 +0000 (14:55 +0000)]
Chaning wording

3 years agoEnsure that the database.sql contains "if exists"
Michael [Wed, 2 Dec 2020 08:50:45 +0000 (08:50 +0000)]
Ensure that the database.sql contains "if exists"

3 years agoCleaned code
Michael [Wed, 2 Dec 2020 08:36:23 +0000 (08:36 +0000)]
Cleaned code

3 years agoMoved direct storage
Michael [Wed, 2 Dec 2020 05:41:33 +0000 (05:41 +0000)]
Moved direct storage

3 years agoDirectly post non mirrored feed items
Michael [Wed, 2 Dec 2020 05:08:39 +0000 (05:08 +0000)]
Directly post non mirrored feed items

3 years agoOnly spool mirrored posts
Michael [Wed, 2 Dec 2020 05:07:44 +0000 (05:07 +0000)]
Only spool mirrored posts

3 years agoOnly delay mirrored feeds
Michael [Wed, 2 Dec 2020 04:53:54 +0000 (04:53 +0000)]
Only delay mirrored feeds

3 years agoUse a combined unique index
Michael [Wed, 2 Dec 2020 00:34:10 +0000 (00:34 +0000)]
Use a combined unique index

3 years agoThe network doesn't matter
Michael [Wed, 2 Dec 2020 00:29:57 +0000 (00:29 +0000)]
The network doesn't matter

3 years agoCheck for existing post
Michael [Wed, 2 Dec 2020 00:20:07 +0000 (00:20 +0000)]
Check for existing post