forgot to map to group ids in retraction
This commit is contained in:
parent
a3ec81add0
commit
1874ebe51d
2 changed files with 14 additions and 6 deletions
|
|
@ -181,6 +181,8 @@ class User
|
||||||
######### Posts and Such ###############
|
######### Posts and Such ###############
|
||||||
def retract( post )
|
def retract( post )
|
||||||
group_ids = groups_with_post( post.id )
|
group_ids = groups_with_post( post.id )
|
||||||
|
group_ids.map!{|group| group.id}
|
||||||
|
|
||||||
post.unsocket_from_uid(self.id, :group_ids => group_ids) if post.respond_to? :unsocket_from_uid
|
post.unsocket_from_uid(self.id, :group_ids => group_ids) if post.respond_to? :unsocket_from_uid
|
||||||
retraction = Retraction.for(post)
|
retraction = Retraction.for(post)
|
||||||
push_to_people retraction, people_in_groups(groups_with_post(post.id))
|
push_to_people retraction, people_in_groups(groups_with_post(post.id))
|
||||||
|
|
|
||||||
|
|
@ -589,13 +589,16 @@ h1.big_text {
|
||||||
border: 1px #666666 solid; }
|
border: 1px #666666 solid; }
|
||||||
|
|
||||||
.group,
|
.group,
|
||||||
.requests {
|
.requests,
|
||||||
|
.remove {
|
||||||
list-style: none; }
|
list-style: none; }
|
||||||
.group h3,
|
.group h3,
|
||||||
.requests h3 {
|
.requests h3,
|
||||||
|
.remove h3 {
|
||||||
display: inline-block; }
|
display: inline-block; }
|
||||||
.group ul,
|
.group ul,
|
||||||
.requests ul {
|
.requests ul,
|
||||||
|
.remove ul {
|
||||||
min-height: 20px;
|
min-height: 20px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
|
|
@ -606,7 +609,8 @@ h1.big_text {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 15px; }
|
padding: 15px; }
|
||||||
.group .person,
|
.group .person,
|
||||||
.requests .person {
|
.requests .person,
|
||||||
|
.remove .person {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
|
@ -620,12 +624,14 @@ h1.big_text {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border: 1px solid #999999; }
|
border: 1px solid #999999; }
|
||||||
.group .person img,
|
.group .person img,
|
||||||
.requests .person img {
|
.requests .person img,
|
||||||
|
.remove .person img {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
display: inline-block; }
|
display: inline-block; }
|
||||||
.group .person .grey,
|
.group .person .grey,
|
||||||
.requests .person .grey {
|
.requests .person .grey,
|
||||||
|
.remove .person .grey {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
color: #666666; }
|
color: #666666; }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue