]> git.mxchange.org Git - friendica.git/log
friendica.git
5 years agoMerge pull request #5575 from annando/issue-5541
Tobias Diekershoff [Tue, 7 Aug 2018 04:44:10 +0000 (06:44 +0200)]
Merge pull request #5575 from annando/issue-5541

5541: Don't do magic things when the remote site doesn't support it

5 years agoIssue 5541: Don't do magic things when the remote site doesn't support it
Michael [Mon, 6 Aug 2018 19:59:41 +0000 (19:59 +0000)]
Issue 5541: Don't do magic things when the remote site doesn't support it

5 years agoMerge pull request #5574 from annando/issue-5436
Tobias Diekershoff [Mon, 6 Aug 2018 17:19:22 +0000 (19:19 +0200)]
Merge pull request #5574 from annando/issue-5436

Issue 5436: Don't store tags that are too long

5 years agoIssue 5436: Don't store tags that are too long
Michael [Mon, 6 Aug 2018 17:11:40 +0000 (17:11 +0000)]
Issue 5436: Don't store tags that are too long

5 years agoPost update script for setting the uri-id (#5573)
Michael Vogel [Mon, 6 Aug 2018 16:40:41 +0000 (18:40 +0200)]
Post update script for setting the uri-id (#5573)

* Post update is working now

* Changed text.

5 years agoMerge pull request #5571 from tobiasd/20180806-lng
Michael Vogel [Mon, 6 Aug 2018 14:24:20 +0000 (16:24 +0200)]
Merge pull request #5571 from tobiasd/20180806-lng

CS and PL translation updates

5 years agoMerge pull request #5572 from tobiasd/20180806-msg2
Michael Vogel [Mon, 6 Aug 2018 14:23:37 +0000 (16:23 +0200)]
Merge pull request #5572 from tobiasd/20180806-msg2

regen master messages.po

5 years agoregen master messages.po
Tobias Diekershoff [Mon, 6 Aug 2018 13:02:15 +0000 (15:02 +0200)]
regen master messages.po

5 years agoCS translation update THX Aditoo
Tobias Diekershoff [Mon, 6 Aug 2018 10:54:45 +0000 (12:54 +0200)]
CS translation update THX Aditoo

5 years agoupdate PL translations THX waldis
Tobias Diekershoff [Mon, 6 Aug 2018 10:54:38 +0000 (12:54 +0200)]
update PL translations THX waldis

5 years agoFix for not loading the translation / some more notice removed (#5569)
Michael Vogel [Mon, 6 Aug 2018 10:11:17 +0000 (12:11 +0200)]
Fix for not loading the translation / some more notice removed (#5569)

5 years agoMerge pull request #5561 from MrPetovan/bug/4584-fix-twitter-gif-still-image
Michael Vogel [Sun, 5 Aug 2018 12:00:19 +0000 (14:00 +0200)]
Merge pull request #5561 from MrPetovan/bug/4584-fix-twitter-gif-still-image

Restore source storing for Twitter conversations

5 years agoIncrease Twitter parcel constant value
Hypolite Petovan [Sun, 5 Aug 2018 11:59:33 +0000 (13:59 +0200)]
Increase Twitter parcel constant value

5 years agoWe now store the uri data in a separate table (#5560)
Michael Vogel [Sun, 5 Aug 2018 11:09:59 +0000 (13:09 +0200)]
We now store the uri data in a separate table (#5560)

* We now have a item-uri table

* Fixing line endings

* New item uri table

* Rescued ItemURI.php file

* Reverting some git problem

* Corrected the dbstructure file

* Updated database.sql / we now store content in the new id fields

5 years agoAdd conversation storage for Twitter
Hypolite Petovan [Sun, 5 Aug 2018 10:34:33 +0000 (12:34 +0200)]
Add conversation storage for Twitter

5 years agoAdd new Conversation::PARCEL_TWITTER constant
Hypolite Petovan [Sun, 5 Aug 2018 10:25:47 +0000 (12:25 +0200)]
Add new Conversation::PARCEL_TWITTER constant

5 years agoRename PROTOCOL_* constants to Model\Conversation::PARCEL_*
Hypolite Petovan [Sun, 5 Aug 2018 10:23:57 +0000 (12:23 +0200)]
Rename PROTOCOL_* constants to Model\Conversation::PARCEL_*

- Remove unused Conversation::PROTOCOL_GS_CONVERSATION constant
- Remove now renamed PROTOCOL_* constant declarations

5 years agoFix: dbstructure.json had had dos endings (#5559)
Michael Vogel [Sun, 5 Aug 2018 09:02:58 +0000 (11:02 +0200)]
Fix: dbstructure.json had had dos endings (#5559)

5 years agoWe shouldn't cascade this deletion as well (#5558)
Michael Vogel [Sun, 5 Aug 2018 09:02:36 +0000 (11:02 +0200)]
We shouldn't cascade this deletion as well (#5558)

5 years agoFixes issue 5321: Likes can be undone and comments can be deleted again (#5557)
Michael Vogel [Sun, 5 Aug 2018 04:35:11 +0000 (06:35 +0200)]
Fixes issue 5321: Likes can be undone and comments can be deleted again (#5557)

5 years agoMerge pull request #5553 from MrPetovan/task/improve-frio-mobile-display
Michael Vogel [Sat, 4 Aug 2018 21:11:27 +0000 (23:11 +0200)]
Merge pull request #5553 from MrPetovan/task/improve-frio-mobile-display

[frio] Increase content space on <600px width devices

5 years agoMerge pull request #5554 from MrPetovan/bug/5544-fix-private-message-js-interactions
Michael Vogel [Sat, 4 Aug 2018 21:09:56 +0000 (23:09 +0200)]
Merge pull request #5554 from MrPetovan/bug/5544-fix-private-message-js-interactions

[frio/vier] Fix JS errors in compose private message page

5 years ago[vier] Add missing addeditortext() JS function in compose private message page
Hypolite Petovan [Sat, 4 Aug 2018 20:10:09 +0000 (22:10 +0200)]
[vier] Add missing addeditortext() JS function in compose private message page

5 years ago[frio] Fix shared posts avatars size/position between desktop/mobile
Hypolite Petovan [Sat, 4 Aug 2018 19:54:02 +0000 (21:54 +0200)]
[frio] Fix shared posts avatars size/position between desktop/mobile

5 years agoMerge pull request #5556 from MrPetovan/bug/4659-ostatus-add-cw-to-shared-posts
Michael Vogel [Sat, 4 Aug 2018 19:46:40 +0000 (21:46 +0200)]
Merge pull request #5556 from MrPetovan/bug/4659-ostatus-add-cw-to-shared-posts

OStatus: Add CW to shared posts

5 years agoremoving vertical spaces under the notification button (#5555)
hoergen [Sat, 4 Aug 2018 19:45:30 +0000 (21:45 +0200)]
removing vertical spaces under the notification button (#5555)

[frio] Removing vertical spaces under the notification button

5 years agoMerge pull request #5552 from MrPetovan/bug/5405-prevent-database-erasure-during...
Michael Vogel [Sat, 4 Aug 2018 19:43:12 +0000 (21:43 +0200)]
Merge pull request #5552 from MrPetovan/bug/5405-prevent-database-erasure-during-test

Skip DB tests if MYSQL_* environment variables are missing

5 years agoAdd CW support to shared posts in Protocol\OStatus
Hypolite Petovan [Sat, 4 Aug 2018 19:40:45 +0000 (21:40 +0200)]
Add CW support to shared posts in Protocol\OStatus

5 years agoRemove plural from $activityobjects variable name in Protocol\OStatus
Hypolite Petovan [Sat, 4 Aug 2018 19:39:54 +0000 (21:39 +0200)]
Remove plural from $activityobjects variable name in Protocol\OStatus

5 years ago[frio] Fix JS error in compose private message page
Hypolite Petovan [Sat, 4 Aug 2018 19:14:29 +0000 (21:14 +0200)]
[frio] Fix JS error in compose private message page

5 years ago[frio] Increase content space on <600px width devices
Hypolite Petovan [Sat, 4 Aug 2018 18:54:58 +0000 (20:54 +0200)]
[frio] Increase content space on <600px width devices

5 years agoSkip DB tests if MYSQL_* environment variables are missing
Hypolite Petovan [Sat, 4 Aug 2018 14:35:31 +0000 (16:35 +0200)]
Skip DB tests if MYSQL_* environment variables are missing

5 years agoFix: Notes can be posted again. Never use "defaults" with "false" (#5551)
Michael Vogel [Sat, 4 Aug 2018 14:06:36 +0000 (16:06 +0200)]
Fix: Notes can be posted again. Never use "defaults" with "false" (#5551)

5 years agoMerge pull request #5549 from MrPetovan/task/move-db-structure-to-config
Michael Vogel [Sat, 4 Aug 2018 12:13:14 +0000 (14:13 +0200)]
Merge pull request #5549 from MrPetovan/task/move-db-structure-to-config

Move DB structure to /config

5 years agoChange DBStructure::definition to use config/dbstructure.json
Hypolite Petovan [Sat, 4 Aug 2018 11:24:04 +0000 (13:24 +0200)]
Change DBStructure::definition to use config/dbstructure.json

5 years agoCreated new config/dbstructure.json file
Hypolite Petovan [Sat, 4 Aug 2018 11:23:39 +0000 (13:23 +0200)]
Created new config/dbstructure.json file

5 years agoAvid notices and warnings (#5546)
Michael Vogel [Thu, 2 Aug 2018 17:07:20 +0000 (19:07 +0200)]
Avid notices and warnings (#5546)

5 years agoNotices what else? (#5545)
Michael Vogel [Thu, 2 Aug 2018 14:11:21 +0000 (16:11 +0200)]
Notices what else? (#5545)

* Poco isn't filled, so we cannot store it

* We should initialize our variables

5 years agoNotices again (#5543)
Michael Vogel [Thu, 2 Aug 2018 05:21:01 +0000 (07:21 +0200)]
Notices again (#5543)

* And again notices

* Notices in the directory

* Much more places

* Fix some double $

* Notice in ping

* Missing field

* Fix: We now remove deleted users from the directory

* Some more stuff

* Notices when removing users

* Added logging

* More logging

* Two more

5 years agoMerge pull request #5542 from tobiasd/20180801-lng
Michael Vogel [Wed, 1 Aug 2018 16:17:30 +0000 (18:17 +0200)]
Merge pull request #5542 from tobiasd/20180801-lng

CS, PL translation updates

5 years agoupdate PL translations THX waldis
Tobias Diekershoff [Wed, 1 Aug 2018 14:23:17 +0000 (16:23 +0200)]
update PL translations THX waldis

5 years agoCS translation update THX Aditoo
Tobias Diekershoff [Wed, 1 Aug 2018 14:23:09 +0000 (16:23 +0200)]
CS translation update THX Aditoo

5 years agoFix missing fields in event reminder (#5540)
Hypolite Petovan [Wed, 1 Aug 2018 07:27:13 +0000 (09:27 +0200)]
Fix missing fields in event reminder (#5540)

5 years agoAdded logging and one more reason for a notice found (#5538)
Michael Vogel [Wed, 1 Aug 2018 06:47:18 +0000 (08:47 +0200)]
Added logging and one more reason for a notice found (#5538)

* Added logging and one more reason for a notice found

* And one more

5 years agoYeah, and again notices ... (#5536)
Michael Vogel [Wed, 1 Aug 2018 05:29:58 +0000 (07:29 +0200)]
Yeah, and again notices ... (#5536)

* Yeah, and again notices ...

* And some more

* Block access without given user name

* Reformatting

5 years agoOnce again, notices ... (#5535)
Michael Vogel [Tue, 31 Jul 2018 16:39:23 +0000 (18:39 +0200)]
Once again, notices ... (#5535)

5 years agoPosting to Facebook profiles is deprecated, so we don't show this anymore (#5534)
Michael Vogel [Tue, 31 Jul 2018 16:38:02 +0000 (18:38 +0200)]
Posting to Facebook profiles is deprecated, so we don't show this anymore (#5534)

5 years agoAnd some more notices removed ... (#5533)
Michael Vogel [Tue, 31 Jul 2018 05:54:25 +0000 (07:54 +0200)]
And some more notices removed ... (#5533)

* Fix for vanishing notes

* The field needs to be part of the selected fields ...

* And some more notes ...

5 years agoFixed fatal error: (#5532)
Roland Häder [Tue, 31 Jul 2018 02:24:32 +0000 (04:24 +0200)]
Fixed fatal error: (#5532)

* Fixed fatal error:
````
PHP Fatal error:  Uncaught TypeError: Argument 1 passed to add_page_info_data()
must be of the type array, boolean given, called in
/var/www/../include/items.php on line 153 and defined in
/var/www/../include/items.php:27
````

Fix for type-hint array when query_page_info() returned a non-array, this may
happen when the instance/node/pod owner decided to shutdown server and replace
all URLs with a replacement message.

* Fixed parser error, ops.

5 years agoFix for vanishing notes (#5531)
Michael Vogel [Tue, 31 Jul 2018 02:23:48 +0000 (04:23 +0200)]
Fix for vanishing notes (#5531)

* Fix for vanishing notes

* The field needs to be part of the selected fields ...

5 years ago[WIP] Rewrite to Proxy class: (#5507)
Roland Häder [Tue, 31 Jul 2018 02:06:22 +0000 (04:06 +0200)]
[WIP] Rewrite to Proxy class: (#5507)

* Rewrite to Proxy class:
- introduced new Friendica\Network\Proxy class for in exchange of proxy_*()
  functions
- moved also all PROXY_* constants there as Proxy::*
- removed now no longer needed mod/proxy.php loading as composer's auto-load
  will do this for us
- renamed those proxy_*() functions to better names:
  + proxy_init()           -> Proxy::init()         (public)
  + proxy_url()            -> Proxy::proxifyUrl()   (public)
  + proxy_parse_html()     -> Proxy::proxifyHtml()  (public)
  + proxy_is_local_image() -> Proxy::isLocalImage() (private)
  + proxy_parse_query()    -> Proxy::parseQuery()   (private)
  + proxy_img_cb()         -> Proxy::replaceUrl()   (private)

* Ops, need to set $a here ...

* CR request:
- moved Proxy class to Friendica\Module
- extended BaseModule

* Ops, no need for own instance of $a when self::getApp() is around.

* Proxy-rewrite:
- proxy_url() and proxy_parse_html() are both non-module functions (now
  methods)
- so they must be splitted into a seperate class
- also the SIZE_* and DEFAULT_TIME constants are both not relevant to module

* No instances from utility classes

* Fixed error:
- proxify*() is now located in `Friendica\Util\ProxyUtils`

* Moved back to original place, ops? How did they move here? Well, it was not
intended by me.

* Removed duplicate (left-over from split) constants and static array. Thank to
MrPetovan finding it.

* Renamed ProxyUtils -> Proxy and aliased it back to ProxyUtils.

5 years agoFixed E_NOTICE in listing worker queue and new utilities class added (#5521)
Roland Häder [Tue, 31 Jul 2018 01:24:26 +0000 (03:24 +0200)]
Fixed E_NOTICE in listing worker queue and new utilities class added (#5521)

* Fixes for E_NOTICE in workqueue:
- introduced class `Friendica\Util\Arrays` which will hold static methods for
  handling arrays that cannot be done with PHP's functions, like implode() on
  multi-dimensional arrays
- rewrote old-school for() loop to foreach()

* Added intial unit test with some tests on empty delimiters and/or sinle and
multi-dim array.

* Added test for for 3-dimensional arrays, thanks to  nupplaphil's feedback.

5 years agoCleaned up include/items.php (#5523)
Roland Häder [Tue, 31 Jul 2018 01:02:34 +0000 (03:02 +0200)]
Cleaned up include/items.php (#5523)

* Cleaned up include/items.php
- added type-hint for array where suitable
- moved opening curly brace to new line after function
- used BaseObject::getApp() instead of get_app()
- used empty() instead of is_array(), maybe avoids E_NOTICE

* Changed 'AS' to 'as', keywords in PHP are all lower-case.

5 years agoMerge pull request #5530 from tobiasd/20180730-adminblocked
Michael Vogel [Mon, 30 Jul 2018 18:03:00 +0000 (20:03 +0200)]
Merge pull request #5530 from tobiasd/20180730-adminblocked

enhance block users in admin panel

5 years agoMerge pull request #5529 from tobiasd/20180730-missingbutton
Michael Vogel [Mon, 30 Jul 2018 18:02:17 +0000 (20:02 +0200)]
Merge pull request #5529 from tobiasd/20180730-missingbutton

Missing submit button in admin panel

5 years agovier theme was missing an icon for the block button
Tobias Diekershoff [Mon, 30 Jul 2018 15:32:35 +0000 (17:32 +0200)]
vier theme was missing an icon for the block button

5 years agomention if a user is blocked in the admin panel user overview
Tobias Diekershoff [Mon, 30 Jul 2018 15:19:22 +0000 (17:19 +0200)]
mention if a user is blocked in the admin panel user overview

5 years agoMissing submit button in admin panel
Tobias Diekershoff [Mon, 30 Jul 2018 14:27:52 +0000 (16:27 +0200)]
Missing submit button in admin panel

5 years agoMerge pull request #5528 from tobiasd/20180730-lng
Michael Vogel [Mon, 30 Jul 2018 09:43:03 +0000 (11:43 +0200)]
Merge pull request #5528 from tobiasd/20180730-lng

CS and DE translation updates

5 years agoDE translation update THX copis
Tobias Diekershoff [Mon, 30 Jul 2018 08:42:16 +0000 (10:42 +0200)]
DE translation update THX copis

5 years agoCS translation update THX Aditoo
Tobias Diekershoff [Mon, 30 Jul 2018 08:16:34 +0000 (10:16 +0200)]
CS translation update THX Aditoo

5 years agoFixing SQL error when receiving DFRN posts (#5527)
Michael Vogel [Mon, 30 Jul 2018 05:06:32 +0000 (07:06 +0200)]
Fixing SQL error when receiving DFRN posts (#5527)

* Some more notices

* Fixed nasty to find notice in DFRN and OStatus

* And more notices ...

* Yeah, some removed notices ... again ...

* Fixing bad SQL query

5 years agoSome more notices (#5526)
Michael Vogel [Mon, 30 Jul 2018 04:41:20 +0000 (06:41 +0200)]
Some more notices (#5526)

* Some more notices

* Fixed nasty to find notice in DFRN and OStatus

* And more notices ...

* Yeah, some removed notices ... again ...

5 years agoMerge pull request #5525 from annando/issue-5486
Tobias Diekershoff [Mon, 30 Jul 2018 04:33:23 +0000 (06:33 +0200)]
Merge pull request #5525 from annando/issue-5486

Issue 5486: Fix for non translated notifications

5 years agoMerge pull request #5522 from Quix0r/fixes/portable-contact-empty-body
Michael Vogel [Mon, 30 Jul 2018 02:40:25 +0000 (04:40 +0200)]
Merge pull request #5522 from Quix0r/fixes/portable-contact-empty-body

Fixed fatal error about when returned 'body' field is empty

5 years agoIssue 5486: Fix for non translated notifications
Michael [Mon, 30 Jul 2018 01:01:26 +0000 (01:01 +0000)]
Issue 5486: Fix for non translated notifications

5 years agoFixed fatal error about when returned 'body' field is empty:
Roland Häder [Sun, 29 Jul 2018 15:34:20 +0000 (17:34 +0200)]
Fixed fatal error about when returned 'body' field is empty:

````
PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Friendica\Protocol\PortableContact::discoverServer() must be of the type array, null given, called in /var/www/../src/Protocol/PortableContact.php on line 1664 and defined in /var/www/../src/Protocol/PortableContact.php:1765
Stack trace:
````

5 years agoMerge pull request #5519 from annando/test-2
Tobias Diekershoff [Sun, 29 Jul 2018 09:45:50 +0000 (11:45 +0200)]
Merge pull request #5519 from annando/test-2

Moved expiring of item content

5 years agoMerge pull request #5520 from annando/notices
Tobias Diekershoff [Sun, 29 Jul 2018 06:20:11 +0000 (08:20 +0200)]
Merge pull request #5520 from annando/notices

Some more notices removed

5 years agoAnd another notice removed
Michael [Sun, 29 Jul 2018 06:08:02 +0000 (06:08 +0000)]
And another notice removed

5 years agoRemoved some test logging
Michael [Sun, 29 Jul 2018 04:38:14 +0000 (04:38 +0000)]
Removed some test logging

5 years agoSome more notices removed
Michael [Sun, 29 Jul 2018 04:04:23 +0000 (04:04 +0000)]
Some more notices removed

5 years agoMoved expiring of item content
Michael [Sun, 29 Jul 2018 03:54:34 +0000 (03:54 +0000)]
Moved expiring of item content

5 years agoTrying to clean up a little bit more (#5517)
Michael Vogel [Sat, 28 Jul 2018 20:04:56 +0000 (22:04 +0200)]
Trying to clean up a little bit more (#5517)

* "post-type" replaces "bookmark" and "type"

* The permission set is now removed upon expiry

* Post update now stores the permission set

* We don't store the permissions in the item table anymore

* Postupdate now handles "postopts" as well

* "post-type" replaces "bookmark" and "type"

* "post-type" replaces "bookmark" and "type"

* "post-type" replaces "bookmark" and "type"

* The permission set is now removed upon expiry

* The permission set is now removed upon expiry

* We don't store the permissions in the item table anymore

* Postupdate now handles "postopts" as well

* Multiplicated update functions

* And some more duplicated functions ...

* Removed duplicate functions

5 years ago Fix for post update (#5513)
Michael Vogel [Sat, 28 Jul 2018 17:12:35 +0000 (19:12 +0200)]
 Fix for post update  (#5513)

* "post-type" replaces "bookmark" and "type"

* Removed some more type

* Added index to permission set

* The permission set is now stored

* The permission set is now removed upon expiry

* Post update now stores the permission set

* New file

* Permissions are now sorted

* The permission set is now used for item permissions

* Check for allow_cid, ... is superfluous. Checking for "private" is enough

* We query the permissionset

* Permissions are displayed correctly

* Changed index

* We don't store the permissions in the item table anymore

* Permission fields are now deprecated

* Reversed ...

* Postupdate now handles "postopts" as well

* Set deprecated fields to "null" if empty

* Postupdates are enabled again

* Fix for post update

5 years agoMissing stuff in "develop"? (#5516)
Michael Vogel [Sat, 28 Jul 2018 17:11:46 +0000 (19:11 +0200)]
Missing stuff in "develop"? (#5516)

* "post-type" replaces "bookmark" and "type"

* Removed some more type

* Added index to permission set

* The permission set is now stored

* The permission set is now removed upon expiry

* Post update now stores the permission set

* New file

* Permissions are now sorted

* The permission set is now used for item permissions

* Check for allow_cid, ... is superfluous. Checking for "private" is enough

* We query the permissionset

* Permissions are displayed correctly

* Changed index

* We don't store the permissions in the item table anymore

* Permission fields are now deprecated

* Reversed ...

* Postupdate now handles "postopts" as well

* Set deprecated fields to "null" if empty

* Postupdates are enabled again

* "post-type" replaces "bookmark" and "type"

* The permission set is now stored

* The permission set is now removed upon expiry

* Postupdate now handles "postopts" as well

5 years agoFix parse error in Protocol\PortableContact (#5515)
Hypolite Petovan [Sat, 28 Jul 2018 12:52:57 +0000 (08:52 -0400)]
Fix parse error in Protocol\PortableContact (#5515)

5 years agoPossible fix for #5470 - json_decode() (#5511)
Roland Häder [Sat, 28 Jul 2018 05:35:27 +0000 (07:35 +0200)]
Possible fix for #5470 - json_decode() (#5511)

* Possible fix for #5470:
- $data is not an object like stdClass but an array
- newer PHP versions doesn't allow cross-access like following:

  $object['foo'] = 123;
  $array->foo = 123;

- added type-hints for private methods for above cases
- used `if (empty($foo)) instead of just `if ($foo)` preventing some nasty
  E_NOTICE
- added some empty lines for better readability

* Rewrite:
- mixture of object/array was here, causing under newer PHP versions some E_NOTICE
- this has been now finally fixed by converting any `object` type to an
  associative `array`
- also changed `is_object()` to `is_array()`

5 years agoMoved global PAGE_* to Profile class (#5500)
Roland Häder [Fri, 27 Jul 2018 23:25:57 +0000 (01:25 +0200)]
Moved global PAGE_* to Profile class (#5500)

* Rewrites:
- moved PAGE_* to Friendica\Model\Profile class

* Fixed more rewrites from plain (global namespace) PAGE_* to Friendica\Models\Profile class

* CR request:
- moved all PAGE_* constants to Friendica\Model\Contact class
- fixed all references of both classes

* CR request:
- moved ACCOUNT_TYPE_* constants from boot.php to Contact::ACCOUNT_TYPE_*

* Just copy-pasted this code from boot.php, needs to be changed to `const ACCOUNT_TYPE_FOO = x;`

* Ops, melting brain cells here ... :-/

5 years agoPostupdate is now working again (#5512)
Michael Vogel [Fri, 27 Jul 2018 23:24:26 +0000 (01:24 +0200)]
Postupdate is now working again (#5512)

* "post-type" replaces "bookmark" and "type"

* Removed some more type

* Added index to permission set

* The permission set is now stored

* The permission set is now removed upon expiry

* Post update now stores the permission set

* New file

* Permissions are now sorted

* The permission set is now used for item permissions

* Check for allow_cid, ... is superfluous. Checking for "private" is enough

* We query the permissionset

* Permissions are displayed correctly

* Changed index

* We don't store the permissions in the item table anymore

* Permission fields are now deprecated

* Reversed ...

* Postupdate now handles "postopts" as well

* Set deprecated fields to "null" if empty

* Postupdates are enabled again

5 years agoMerge pull request #5509 from friendica/revert-5506-fixes/portable-contact
Michael Vogel [Fri, 27 Jul 2018 06:04:19 +0000 (08:04 +0200)]
Merge pull request #5509 from friendica/revert-5506-fixes/portable-contact

Revert "Possible fix for #5470 and empty() usage"

5 years agoRevert "Possible fix for #5470: (#5506)"
Michael Vogel [Fri, 27 Jul 2018 06:02:41 +0000 (08:02 +0200)]
Revert "Possible fix for #5470: (#5506)"

This reverts commit 1e20fd84f7e942c9cce8c1fbdecf6ec73b4c8a43.

5 years agoRevert "Continued: (#5508)"
Michael Vogel [Fri, 27 Jul 2018 06:02:41 +0000 (08:02 +0200)]
Revert "Continued: (#5508)"

This reverts commit 592190892c17ab61cce132dee1a4a2020575b180.

5 years agoContinued: (#5508)
Roland Häder [Fri, 27 Jul 2018 02:27:28 +0000 (04:27 +0200)]
Continued: (#5508)

- `App` is now "imported" to avoid having \Friendica\App::* everywhere

5 years agoPossible fix for #5470: (#5506)
Roland Häder [Thu, 26 Jul 2018 22:27:12 +0000 (00:27 +0200)]
Possible fix for #5470: (#5506)

- $data is not an object like stdClass but an array
- newer PHP versions doesn't allow cross-access like following:

  $object['foo'] = 123;
  $array->foo = 123;

- added type-hints for private methods for above cases
- used `if (empty($foo)) instead of just `if ($foo)` preventing some nasty
  E_NOTICE
- added some empty lines for better readability

5 years ago[frio] Fix wrongly removed content wrapper and fix CSS instead. (#5496) (#5505)
Andreas Neustifter [Thu, 26 Jul 2018 15:42:26 +0000 (17:42 +0200)]
[frio] Fix wrongly removed content wrapper and fix CSS instead. (#5496) (#5505)

5 years agoItem storage: Permissions aren't stored in the items anymore (#5495)
Michael Vogel [Wed, 25 Jul 2018 23:14:55 +0000 (01:14 +0200)]
Item storage: Permissions aren't stored in the items anymore (#5495)

* The permission set is now used for item permissions

* Check for allow_cid, ... is superfluous. Checking for "private" is enough

* We query the permissionset

* Permissions are displayed correctly

* Changed index

* We don't store the permissions in the item table anymore

* Permission fields are now deprecated

* Reversed ...

5 years ago[frio] Remove frame around recent photos. (#5496) (#5499)
Andreas Neustifter [Wed, 25 Jul 2018 20:21:43 +0000 (22:21 +0200)]
[frio] Remove frame around recent photos. (#5496) (#5499)

Also layout file properly.

5 years ago[frio] Fix layout of profile aside. (#5497) (#5498)
Andreas Neustifter [Wed, 25 Jul 2018 20:12:30 +0000 (22:12 +0200)]
[frio] Fix layout of profile aside. (#5497) (#5498)

See issue (#5497)[https://github.com/friendica/friendica/issues/5497] for details.

5 years agoBugfix: Session handling hadn't been initialized (#5493)
Michael Vogel [Wed, 25 Jul 2018 14:25:40 +0000 (16:25 +0200)]
Bugfix: Session handling hadn't been initialized (#5493)

5 years agoMerge pull request #5491 from tobiasd/20180725-issue1391
Michael Vogel [Wed, 25 Jul 2018 09:18:01 +0000 (11:18 +0200)]
Merge pull request #5491 from tobiasd/20180725-issue1391

Make profile settings available in the user settings

5 years agoadd accesskey to the docs
Tobias Diekershoff [Wed, 25 Jul 2018 07:39:26 +0000 (09:39 +0200)]
add accesskey to the docs

5 years agoMake profile settings available in the user settings
Tobias Diekershoff [Wed, 25 Jul 2018 07:37:08 +0000 (09:37 +0200)]
Make profile settings available in the user settings

5 years agoFixes/rewrites on videos.php (#5489)
Roland Häder [Wed, 25 Jul 2018 02:54:00 +0000 (04:54 +0200)]
Fixes/rewrites on videos.php (#5489)

* Fixes/rewrites:
- use empty()/isset() instead of deprecated x()
- merged 2 nested if() blocks into one
- avoided nested if() block inside else block by rewriting it to elseif()
- $contact_id is an integer, let's test on > 0 here
- added a lot spaces and some empty lines for better readability

* CR request:
- removed stray spaces
- added some where they improve readability

5 years agoMoved CONTACT_* constants to Friendica\Model\Contact class, lesser in global namespac...
Roland Häder [Wed, 25 Jul 2018 02:53:46 +0000 (04:53 +0200)]
Moved CONTACT_* constants to Friendica\Model\Contact class, lesser in global namespace (#5490)

* Rewrite:
- moved all CONTACT_* constants from boot.php to Contact class

* CR request:
- renamed Contact::CONTACT_IS_* -> Contact::* ;-)

5 years agoRemoval of x() and added missing columns of contact (#5479)
Roland Häder [Tue, 24 Jul 2018 21:48:47 +0000 (23:48 +0200)]
Removal of x() and added missing columns of contact (#5479)

* Fixes:
- got rid of x() in whole mod/item.php file
- added missing 'prv' and 'forum' columns, maybe one day, let's rewrite this
  again. it is kinda a maintenance nightmare, keeping up with column renames and
  such. Well, for now it should be okay.

* Should be DBA::isResult()

5 years agoFallback to Diaspora if DFRN transmission fails (#5487)
Michael Vogel [Tue, 24 Jul 2018 18:12:09 +0000 (20:12 +0200)]
Fallback to Diaspora if DFRN transmission fails (#5487)

5 years agoMerge pull request #5452 from MrPetovan/bug/5443-fix-worker-notices
Michael Vogel [Tue, 24 Jul 2018 15:11:53 +0000 (17:11 +0200)]
Merge pull request #5452 from MrPetovan/bug/5443-fix-worker-notices

Fix notices in OEmbed et al.

5 years agoReduce cache time for OEmbed error
Hypolite Petovan [Tue, 24 Jul 2018 15:05:09 +0000 (11:05 -0400)]
Reduce cache time for OEmbed error

5 years ago[frio] Fix profile edit links. [#5474] (#5475)
Andreas Neustifter [Tue, 24 Jul 2018 14:20:16 +0000 (16:20 +0200)]
[frio] Fix profile edit links. [#5474] (#5475)