Commit graph

18948 commits

Author SHA1 Message Date
Pierre Rudloff
2c7514d03c Enable Travis 2018-04-09 22:35:05 +02:00
Pierre Rudloff
7d953d952e Various small fixes (#4795)
* Use strict comparison to avoid 0 == false
* Avoid unecessary loop
* Avoid undefined variable
* Fix wrong variable name
* Don't try to use the $status_info variable if it does not exist
* Avoid undefined variable
* Check that variable is defined before trying to use it
* Don't cast $data array to boolean
* Fix undefined array
* $reactivate_group variable is not always defined
* Variable $found is not always defined
* Remove unused return statement
* Fix undefined array
* api_unique_id_to_nurl() requires an integer as argument
* Don't try to use $uinfo if it is false
* Don't use the same variable names in inner loop
* Throw an exception if $fileext is not defined
2018-04-09 15:34:53 -04:00
Michael Vogel
74e189039a
Merge pull request #4768 from MrPetovan/task/hide-ignored-unfollowed-contact-posts
Hide posts from recently ignored/unfollowed contact
2018-04-09 20:08:20 +02:00
Hypolite Petovan
2f016d4e45
Merge pull request #4794 from Rudloff/feature/return_type
Return types
2018-04-09 14:07:27 -04:00
Pierre Rudloff
773591a6ba Add some missing return types 2018-04-09 19:53:02 +02:00
Pierre Rudloff
4b36f3ad05 api_format_data() seems to never return an object 2018-04-09 19:34:09 +02:00
Hypolite Petovan
b684a74449
Merge pull request #4793 from Rudloff/feature/datatypes
Throw a ForbiddenException if api_get_user() returns false
2018-04-09 13:13:59 -04:00
Pierre Rudloff
9cde7881ee Throw a ForbiddenException if api_get_user() returns false 2018-04-09 18:52:38 +02:00
Hypolite Petovan
99b446eccc Remove useless intval() calls in mod/network 2018-04-09 09:19:49 -04:00
Hypolite Petovan
eea32ede5c
Merge pull request #4792 from ben-utzer/patch-1
Improvement for the systemd timer unit
2018-04-09 09:17:32 -04:00
utzer
a4f469d187
RemainAfterElapse=False
> if RemainAfterElapse= is off, it might be started again if it is already elapsed, and thus be triggered multiple times
False will start the process again and again after the set time, this is the desired behavior for worker.php

Infos: https://www.freedesktop.org/software/systemd/man/systemd.timer.html
2018-04-09 18:42:02 +05:30
Michael Vogel
785ef70e5d
Merge pull request #4789 from tobiasd/20180409-lng
updated translations
2018-04-09 10:53:16 +02:00
Tobias Diekershoff
ca3325bcbb updated translations 2018-04-09 10:17:25 +02:00
Tobias Diekershoff
66bcbe210a
Merge pull request #4788 from annando/more-relay
Relay: Avoid empty tags / Always use the "relay account"
2018-04-09 08:31:43 +02:00
Michael
105f3ca747 Relay: Avoid empty tags / Always use the "relay account" 2018-04-09 05:53:23 +00:00
Hypolite Petovan
7563adcc7d Use positive form for relationship check in mod/network 2018-04-08 20:47:16 -04:00
Hypolite Petovan
a2607ea00a
Merge pull request #4785 from annando/magiclink
The magic link is added at more places
2018-04-08 20:38:33 -04:00
Michael
5c2b54009e The magic link is added at more places 2018-04-08 19:17:50 +00:00
Alexandre Alapetite
e860cdf6a8 Swap if / elseif
https://github.com/friendica/friendica/pull/4782#discussion_r179947984
2018-04-08 16:02:25 +02:00
Hypolite Petovan
b28fd98acd Replaced < comparison with IN for contact.rel in mod/network 2018-04-08 09:59:43 -04:00
Alexandre Alapetite
82f1f2f00e Remove SQL column legacy_password 2018-04-08 14:53:12 +02:00
Alexandre Alapetite
cb26cd6d5d Remove legacy_password test 2018-04-08 14:42:18 +02:00
Hypolite Petovan
fa7bed8929
Merge pull request #4783 from annando/queue-relay
Don't queue relay posts
2018-04-08 08:35:36 -04:00
Alexandre Alapetite
129f6806f6 Fix update password rehash
Fixes https://github.com/friendica/friendica/issues/4743
The logic for updating password was wrong:
b0a764b14c (diff-1466bb1a0a37fe9f7cf52eda8f3b431aR150)
2018-04-08 12:40:35 +02:00
Michael Vogel
b2520bc48e
Merge pull request #4780 from tobiasd/20180408-pl
update for PL translation THX waldis
2018-04-08 12:36:56 +02:00
Michael
a75858f02c Don't queue relay posts 2018-04-08 09:46:47 +00:00
Tobias Diekershoff
65b738ecfa update for PL translation THX waldis 2018-04-08 11:02:31 +02:00
Michael Vogel
7f0bd63b7d
Merge pull request #4773 from MrPetovan/task/4629-move-dev-executables
Move dev executables to bin/dev/
2018-04-08 07:44:24 +02:00
Hypolite Petovan
48f8492056
Merge pull request #4779 from Rudloff/feature/list_api
Feature/list api
2018-04-07 21:03:50 -04:00
Pierre Rudloff
d0591dd882 The first argument for api_format_items() must be an array 2018-04-08 01:06:40 +02:00
Pierre Rudloff
9c351bad68 Fix wrong use of empty() 2018-04-08 00:55:05 +02:00
Hypolite Petovan
61050c8e30
Merge pull request #4777 from Rudloff/feature/list_api
Implement parts of the list API
2018-04-07 17:47:21 -04:00
Pierre Rudloff
bef3799942 Use empty() instead of !x() 2018-04-07 23:21:51 +02:00
Pierre Rudloff
333eb5f9dd Add missing variable 2018-04-07 23:20:30 +02:00
Pierre Rudloff
b775cba8c2 Remove confusing comment 2018-04-07 22:39:38 +02:00
Pierre Rudloff
036803d8c7 Typo 2018-04-07 22:37:57 +02:00
Pierre Rudloff
5d8d62015c Make list_id parameter mandatory in api/lists/statuses 2018-04-07 22:36:54 +02:00
Pierre Rudloff
6401eb988b Use dba to access database in api_lists_statuses() 2018-04-07 22:35:19 +02:00
Pierre Rudloff
fea7ec2482 We don't need type casting for dba::select() arguments 2018-04-07 22:18:39 +02:00
Pierre Rudloff
c5aaa61d11 Rename api_list_create() to api_lists_create() for consistency 2018-04-07 22:15:35 +02:00
Pierre Rudloff
c4edad212b Use dba to access the database in list API functions 2018-04-07 19:55:41 +02:00
Pierre Rudloff
929440417c We don't really need the unsen bit in api_lists_statuses() 2018-04-07 19:52:47 +02:00
Pierre Rudloff
b3235c2d02 Implement parts of the list API:
lists/statuses
lists/destroy
lists/update
lists/create
lists/ownerships
2018-04-07 19:16:47 +02:00
Hypolite Petovan
12b5963f22 Update Vagrant script path 2018-04-07 09:01:40 -04:00
Hypolite Petovan
2d9f32c3df Move dev executables from util/ to bin/dev/ 2018-04-07 09:00:52 -04:00
Hypolite Petovan
c8b0520144 Use CONTACT_IS_SHARING constant instead of rel value 2018-04-07 08:09:13 -04:00
Hypolite Petovan
23f5779401
Merge pull request #4771 from Rudloff/feature/avatar
Add profile_image_url_profile_size and profile_image_url_large to API
2018-04-07 07:51:00 -04:00
Hypolite Petovan
a2e9c7a565
Merge pull request #4770 from annando/dfrn-delivery
Fix: Empty answers in DFRN-Delivery can be okay
2018-04-07 07:47:02 -04:00
Pierre Rudloff
78a979ee58 Add profile_image_url_profile_size and profile_image_url_large properties to user object returned by API (fixes #4695)
This allows some clients to display a bigger avatar on profiles.
2018-04-07 13:31:17 +02:00
Michael
d0dfe2aa64 Fix: Empty answers in DFRN can be okay 2018-04-07 10:02:43 +00:00