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

This commit is contained in:
friendica 2012-12-09 13:44:48 -08:00
parent 4793ebb141
commit bc3a704e02
3 changed files with 61 additions and 50 deletions

View File

@ -12,7 +12,7 @@ require_once('library/Mobile_Detect/Mobile_Detect.php');
require_once('include/features.php'); require_once('include/features.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '3.1.1550' ); define ( 'FRIENDICA_VERSION', '3.1.1552' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1157 ); define ( 'DB_UPDATE_VERSION', 1157 );

View File

@ -99,6 +99,7 @@ class Item extends BaseObject {
$conv = $this->get_conversation(); $conv = $this->get_conversation();
$lock = ((($item['private'] == 1) || (($item['uid'] == local_user()) && (strlen($item['allow_cid']) || strlen($item['allow_gid']) $lock = ((($item['private'] == 1) || (($item['uid'] == local_user()) && (strlen($item['allow_cid']) || strlen($item['allow_gid'])
|| strlen($item['deny_cid']) || strlen($item['deny_gid'])))) || strlen($item['deny_cid']) || strlen($item['deny_gid']))))
? t('Private Message') ? t('Private Message')
@ -496,6 +497,12 @@ class Item extends BaseObject {
if($conv) { if($conv) {
// This will allow us to comment on wall-to-wall items owned by our friends // 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. // 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 || ($this->is_visiting() && $conv->get_mode() == 'profile'));
} }
return $this->writable; return $this->writable;

View File

@ -6,9 +6,9 @@
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 3.1.1550\n" "Project-Id-Version: 3.1.1552\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -4404,198 +4404,202 @@ msgid "Edit Profile Details"
msgstr "" msgstr ""
#: ../../mod/profiles.php:605 #: ../../mod/profiles.php:605
msgid "View this profile" msgid "Change Profile Photo"
msgstr "" msgstr ""
#: ../../mod/profiles.php:606 #: ../../mod/profiles.php:606
msgid "Create a new profile using these settings" msgid "View this profile"
msgstr "" msgstr ""
#: ../../mod/profiles.php:607 #: ../../mod/profiles.php:607
msgid "Clone this profile" msgid "Create a new profile using these settings"
msgstr "" msgstr ""
#: ../../mod/profiles.php:608 #: ../../mod/profiles.php:608
msgid "Delete this profile" msgid "Clone this profile"
msgstr "" msgstr ""
#: ../../mod/profiles.php:609 #: ../../mod/profiles.php:609
msgid "Profile Name:" msgid "Delete this profile"
msgstr "" msgstr ""
#: ../../mod/profiles.php:610 #: ../../mod/profiles.php:610
msgid "Your Full Name:" msgid "Profile Name:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:611 #: ../../mod/profiles.php:611
msgid "Title/Description:" msgid "Your Full Name:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:612 #: ../../mod/profiles.php:612
msgid "Your Gender:" msgid "Title/Description:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:613 #: ../../mod/profiles.php:613
msgid "Your Gender:"
msgstr ""
#: ../../mod/profiles.php:614
#, php-format #, php-format
msgid "Birthday (%s):" msgid "Birthday (%s):"
msgstr "" msgstr ""
#: ../../mod/profiles.php:614 #: ../../mod/profiles.php:615
msgid "Street Address:" msgid "Street Address:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:615 #: ../../mod/profiles.php:616
msgid "Locality/City:" msgid "Locality/City:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:616 #: ../../mod/profiles.php:617
msgid "Postal/Zip Code:" msgid "Postal/Zip Code:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:617 #: ../../mod/profiles.php:618
msgid "Country:" msgid "Country:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:618 #: ../../mod/profiles.php:619
msgid "Region/State:" msgid "Region/State:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:619 #: ../../mod/profiles.php:620
msgid "<span class=\"heart\">&hearts;</span> Marital Status:" msgid "<span class=\"heart\">&hearts;</span> Marital Status:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:620 #: ../../mod/profiles.php:621
msgid "Who: (if applicable)" msgid "Who: (if applicable)"
msgstr "" msgstr ""
#: ../../mod/profiles.php:621 #: ../../mod/profiles.php:622
msgid "Examples: cathy123, Cathy Williams, cathy@example.com" msgid "Examples: cathy123, Cathy Williams, cathy@example.com"
msgstr "" msgstr ""
#: ../../mod/profiles.php:622 #: ../../mod/profiles.php:623
msgid "Since [date]:" msgid "Since [date]:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:623 ../../include/profile_advanced.php:46 #: ../../mod/profiles.php:624 ../../include/profile_advanced.php:46
msgid "Sexual Preference:" msgid "Sexual Preference:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:624 #: ../../mod/profiles.php:625
msgid "Homepage URL:" msgid "Homepage URL:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:625 ../../include/profile_advanced.php:50 #: ../../mod/profiles.php:626 ../../include/profile_advanced.php:50
msgid "Hometown:" msgid "Hometown:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:626 ../../include/profile_advanced.php:54 #: ../../mod/profiles.php:627 ../../include/profile_advanced.php:54
msgid "Political Views:" msgid "Political Views:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:627 #: ../../mod/profiles.php:628
msgid "Religious Views:" msgid "Religious Views:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:628 #: ../../mod/profiles.php:629
msgid "Public Keywords:" msgid "Public Keywords:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:629 #: ../../mod/profiles.php:630
msgid "Private Keywords:" msgid "Private Keywords:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:630 ../../include/profile_advanced.php:62 #: ../../mod/profiles.php:631 ../../include/profile_advanced.php:62
msgid "Likes:" msgid "Likes:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:631 ../../include/profile_advanced.php:64 #: ../../mod/profiles.php:632 ../../include/profile_advanced.php:64
msgid "Dislikes:" msgid "Dislikes:"
msgstr "" msgstr ""
#: ../../mod/profiles.php:632 #: ../../mod/profiles.php:633
msgid "Example: fishing photography software" msgid "Example: fishing photography software"
msgstr "" msgstr ""
#: ../../mod/profiles.php:633 #: ../../mod/profiles.php:634
msgid "(Used for suggesting potential friends, can be seen by others)" msgid "(Used for suggesting potential friends, can be seen by others)"
msgstr "" msgstr ""
#: ../../mod/profiles.php:634 #: ../../mod/profiles.php:635
msgid "(Used for searching profiles, never shown to others)" msgid "(Used for searching profiles, never shown to others)"
msgstr "" msgstr ""
#: ../../mod/profiles.php:635 #: ../../mod/profiles.php:636
msgid "Tell us about yourself..." msgid "Tell us about yourself..."
msgstr "" msgstr ""
#: ../../mod/profiles.php:636 #: ../../mod/profiles.php:637
msgid "Hobbies/Interests" msgid "Hobbies/Interests"
msgstr "" msgstr ""
#: ../../mod/profiles.php:637 #: ../../mod/profiles.php:638
msgid "Contact information and Social Networks" msgid "Contact information and Social Networks"
msgstr "" msgstr ""
#: ../../mod/profiles.php:638 #: ../../mod/profiles.php:639
msgid "Musical interests" msgid "Musical interests"
msgstr "" msgstr ""
#: ../../mod/profiles.php:639 #: ../../mod/profiles.php:640
msgid "Books, literature" msgid "Books, literature"
msgstr "" msgstr ""
#: ../../mod/profiles.php:640 #: ../../mod/profiles.php:641
msgid "Television" msgid "Television"
msgstr "" msgstr ""
#: ../../mod/profiles.php:641 #: ../../mod/profiles.php:642
msgid "Film/dance/culture/entertainment" msgid "Film/dance/culture/entertainment"
msgstr "" msgstr ""
#: ../../mod/profiles.php:642 #: ../../mod/profiles.php:643
msgid "Love/romance" msgid "Love/romance"
msgstr "" msgstr ""
#: ../../mod/profiles.php:643 #: ../../mod/profiles.php:644
msgid "Work/employment" msgid "Work/employment"
msgstr "" msgstr ""
#: ../../mod/profiles.php:644 #: ../../mod/profiles.php:645
msgid "School/education" msgid "School/education"
msgstr "" msgstr ""
#: ../../mod/profiles.php:649 #: ../../mod/profiles.php:650
msgid "" msgid ""
"This is your <strong>public</strong> profile.<br />It <strong>may</strong> " "This is your <strong>public</strong> profile.<br />It <strong>may</strong> "
"be visible to anybody using the internet." "be visible to anybody using the internet."
msgstr "" msgstr ""
#: ../../mod/profiles.php:659 ../../mod/directory.php:111 #: ../../mod/profiles.php:660 ../../mod/directory.php:111
#: ../../addon/forumdirectory/forumdirectory.php:133 #: ../../addon/forumdirectory/forumdirectory.php:133
msgid "Age: " msgid "Age: "
msgstr "" msgstr ""
#: ../../mod/profiles.php:698 #: ../../mod/profiles.php:699
msgid "Edit/Manage Profiles" msgid "Edit/Manage Profiles"
msgstr "" msgstr ""
#: ../../mod/profiles.php:699 ../../boot.php:1244 #: ../../mod/profiles.php:700 ../../boot.php:1244
msgid "Change profile photo" msgid "Change profile photo"
msgstr "" msgstr ""
#: ../../mod/profiles.php:700 ../../boot.php:1245 #: ../../mod/profiles.php:701 ../../boot.php:1245
msgid "Create New Profile" msgid "Create New Profile"
msgstr "" msgstr ""
#: ../../mod/profiles.php:711 ../../boot.php:1255 #: ../../mod/profiles.php:712 ../../boot.php:1255
msgid "Profile Image" msgid "Profile Image"
msgstr "" msgstr ""
#: ../../mod/profiles.php:713 ../../boot.php:1258 #: ../../mod/profiles.php:714 ../../boot.php:1258
msgid "visible to everybody" msgid "visible to everybody"
msgstr "" msgstr ""
#: ../../mod/profiles.php:714 ../../boot.php:1259 #: ../../mod/profiles.php:715 ../../boot.php:1259
msgid "Edit visibility" msgid "Edit visibility"
msgstr "" msgstr ""