From bc3a704e02cebd6554ab9a5ffcf780030c6a8b88 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 9 Dec 2012 13:44:48 -0800 Subject: [PATCH] bug #517 - ensure wall owner can always comment on walltowall posts to their own wall, this seems to have been lost during the objectification of conversations --- boot.php | 2 +- object/Item.php | 7 ++++ util/messages.po | 102 ++++++++++++++++++++++++----------------------- 3 files changed, 61 insertions(+), 50 deletions(-) diff --git a/boot.php b/boot.php index 8c0cc88044..ab8af5fd1a 100644 --- a/boot.php +++ b/boot.php @@ -12,7 +12,7 @@ require_once('library/Mobile_Detect/Mobile_Detect.php'); require_once('include/features.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); -define ( 'FRIENDICA_VERSION', '3.1.1550' ); +define ( 'FRIENDICA_VERSION', '3.1.1552' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); define ( 'DB_UPDATE_VERSION', 1157 ); diff --git a/object/Item.php b/object/Item.php index 9cc9fe15a6..0c84146f9b 100644 --- a/object/Item.php +++ b/object/Item.php @@ -99,6 +99,7 @@ class Item extends BaseObject { $conv = $this->get_conversation(); + $lock = ((($item['private'] == 1) || (($item['uid'] == local_user()) && (strlen($item['allow_cid']) || strlen($item['allow_gid']) || strlen($item['deny_cid']) || strlen($item['deny_gid'])))) ? t('Private Message') @@ -496,6 +497,12 @@ class Item extends BaseObject { if($conv) { // This will allow us to comment on wall-to-wall items owned by our friends // and community forums even if somebody else wrote the post. + + // bug #517 - this fixes for conversation owner + if($conv->get_mode() == 'profile' && $conv->get_profile_owner() == local_user()) + return true; + + // this fixes for visitors return ($this->writable || ($this->is_visiting() && $conv->get_mode() == 'profile')); } return $this->writable; diff --git a/util/messages.po b/util/messages.po index e4f3f03f15..5caf0be433 100644 --- a/util/messages.po +++ b/util/messages.po @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: 3.1.1550\n" +"Project-Id-Version: 3.1.1552\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-12-07 10:00-0800\n" +"POT-Creation-Date: 2012-12-09 10:00-0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -4404,198 +4404,202 @@ msgid "Edit Profile Details" msgstr "" #: ../../mod/profiles.php:605 -msgid "View this profile" +msgid "Change Profile Photo" msgstr "" #: ../../mod/profiles.php:606 -msgid "Create a new profile using these settings" +msgid "View this profile" msgstr "" #: ../../mod/profiles.php:607 -msgid "Clone this profile" +msgid "Create a new profile using these settings" msgstr "" #: ../../mod/profiles.php:608 -msgid "Delete this profile" +msgid "Clone this profile" msgstr "" #: ../../mod/profiles.php:609 -msgid "Profile Name:" +msgid "Delete this profile" msgstr "" #: ../../mod/profiles.php:610 -msgid "Your Full Name:" +msgid "Profile Name:" msgstr "" #: ../../mod/profiles.php:611 -msgid "Title/Description:" +msgid "Your Full Name:" msgstr "" #: ../../mod/profiles.php:612 -msgid "Your Gender:" +msgid "Title/Description:" msgstr "" #: ../../mod/profiles.php:613 +msgid "Your Gender:" +msgstr "" + +#: ../../mod/profiles.php:614 #, php-format msgid "Birthday (%s):" msgstr "" -#: ../../mod/profiles.php:614 +#: ../../mod/profiles.php:615 msgid "Street Address:" msgstr "" -#: ../../mod/profiles.php:615 +#: ../../mod/profiles.php:616 msgid "Locality/City:" msgstr "" -#: ../../mod/profiles.php:616 +#: ../../mod/profiles.php:617 msgid "Postal/Zip Code:" msgstr "" -#: ../../mod/profiles.php:617 +#: ../../mod/profiles.php:618 msgid "Country:" msgstr "" -#: ../../mod/profiles.php:618 +#: ../../mod/profiles.php:619 msgid "Region/State:" msgstr "" -#: ../../mod/profiles.php:619 +#: ../../mod/profiles.php:620 msgid " Marital Status:" msgstr "" -#: ../../mod/profiles.php:620 +#: ../../mod/profiles.php:621 msgid "Who: (if applicable)" msgstr "" -#: ../../mod/profiles.php:621 +#: ../../mod/profiles.php:622 msgid "Examples: cathy123, Cathy Williams, cathy@example.com" msgstr "" -#: ../../mod/profiles.php:622 +#: ../../mod/profiles.php:623 msgid "Since [date]:" msgstr "" -#: ../../mod/profiles.php:623 ../../include/profile_advanced.php:46 +#: ../../mod/profiles.php:624 ../../include/profile_advanced.php:46 msgid "Sexual Preference:" msgstr "" -#: ../../mod/profiles.php:624 +#: ../../mod/profiles.php:625 msgid "Homepage URL:" msgstr "" -#: ../../mod/profiles.php:625 ../../include/profile_advanced.php:50 +#: ../../mod/profiles.php:626 ../../include/profile_advanced.php:50 msgid "Hometown:" msgstr "" -#: ../../mod/profiles.php:626 ../../include/profile_advanced.php:54 +#: ../../mod/profiles.php:627 ../../include/profile_advanced.php:54 msgid "Political Views:" msgstr "" -#: ../../mod/profiles.php:627 +#: ../../mod/profiles.php:628 msgid "Religious Views:" msgstr "" -#: ../../mod/profiles.php:628 +#: ../../mod/profiles.php:629 msgid "Public Keywords:" msgstr "" -#: ../../mod/profiles.php:629 +#: ../../mod/profiles.php:630 msgid "Private Keywords:" msgstr "" -#: ../../mod/profiles.php:630 ../../include/profile_advanced.php:62 +#: ../../mod/profiles.php:631 ../../include/profile_advanced.php:62 msgid "Likes:" msgstr "" -#: ../../mod/profiles.php:631 ../../include/profile_advanced.php:64 +#: ../../mod/profiles.php:632 ../../include/profile_advanced.php:64 msgid "Dislikes:" msgstr "" -#: ../../mod/profiles.php:632 +#: ../../mod/profiles.php:633 msgid "Example: fishing photography software" msgstr "" -#: ../../mod/profiles.php:633 +#: ../../mod/profiles.php:634 msgid "(Used for suggesting potential friends, can be seen by others)" msgstr "" -#: ../../mod/profiles.php:634 +#: ../../mod/profiles.php:635 msgid "(Used for searching profiles, never shown to others)" msgstr "" -#: ../../mod/profiles.php:635 +#: ../../mod/profiles.php:636 msgid "Tell us about yourself..." msgstr "" -#: ../../mod/profiles.php:636 +#: ../../mod/profiles.php:637 msgid "Hobbies/Interests" msgstr "" -#: ../../mod/profiles.php:637 +#: ../../mod/profiles.php:638 msgid "Contact information and Social Networks" msgstr "" -#: ../../mod/profiles.php:638 +#: ../../mod/profiles.php:639 msgid "Musical interests" msgstr "" -#: ../../mod/profiles.php:639 +#: ../../mod/profiles.php:640 msgid "Books, literature" msgstr "" -#: ../../mod/profiles.php:640 +#: ../../mod/profiles.php:641 msgid "Television" msgstr "" -#: ../../mod/profiles.php:641 +#: ../../mod/profiles.php:642 msgid "Film/dance/culture/entertainment" msgstr "" -#: ../../mod/profiles.php:642 +#: ../../mod/profiles.php:643 msgid "Love/romance" msgstr "" -#: ../../mod/profiles.php:643 +#: ../../mod/profiles.php:644 msgid "Work/employment" msgstr "" -#: ../../mod/profiles.php:644 +#: ../../mod/profiles.php:645 msgid "School/education" msgstr "" -#: ../../mod/profiles.php:649 +#: ../../mod/profiles.php:650 msgid "" "This is your public profile.
It may " "be visible to anybody using the internet." msgstr "" -#: ../../mod/profiles.php:659 ../../mod/directory.php:111 +#: ../../mod/profiles.php:660 ../../mod/directory.php:111 #: ../../addon/forumdirectory/forumdirectory.php:133 msgid "Age: " msgstr "" -#: ../../mod/profiles.php:698 +#: ../../mod/profiles.php:699 msgid "Edit/Manage Profiles" msgstr "" -#: ../../mod/profiles.php:699 ../../boot.php:1244 +#: ../../mod/profiles.php:700 ../../boot.php:1244 msgid "Change profile photo" msgstr "" -#: ../../mod/profiles.php:700 ../../boot.php:1245 +#: ../../mod/profiles.php:701 ../../boot.php:1245 msgid "Create New Profile" msgstr "" -#: ../../mod/profiles.php:711 ../../boot.php:1255 +#: ../../mod/profiles.php:712 ../../boot.php:1255 msgid "Profile Image" msgstr "" -#: ../../mod/profiles.php:713 ../../boot.php:1258 +#: ../../mod/profiles.php:714 ../../boot.php:1258 msgid "visible to everybody" msgstr "" -#: ../../mod/profiles.php:714 ../../boot.php:1259 +#: ../../mod/profiles.php:715 ../../boot.php:1259 msgid "Edit visibility" msgstr "" -- 2.39.5