Empty statuses posted
JNeoN - August 26, 2009 - 10:41
| Project: | Facebook-style Statuses (Microblog) |
| Version: | 6.x-2.x-dev |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
When I click submit with an empty status it's posted with no status and no time in Latest Status Updates view. I do not know if this is the desired behavior...
I can avoid it by coding in facebook_status.module in line 700 this:
if ($new_status != $status->status && $account->uid && ($new_status != '')) {If you think this is a 'bug' could be better to fix this in future releases. Instead, If you think isn't relevant, must I rewrite this line all the times I update the module? (or there's a way for overriding this function of facebook_status.module)

#1
Just add the "Facebook-style Statuses: Status Text" filter to the View for now and leave the matching textfield blank in the filter options. I did that for the other default Views but I must have forgotten to do that in the Latest Status Updates view.
#2
Fixed in CVS. You will need to go to admin/build/views and click "Revert" next to the relevant view in order to see the changes. You may also need to refresh your Drupal and/or Views cache.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.
#4
I've found that if you include any Default text (under Advanced settings), and a user clicks Submit on their Status, that text is submitted - as a result I get a lot of 'What's on your mind?' status updates
Is there any way to prevent this?
#5
I just committed a fix for that to CVS, and it will be in the next dev. If you urgently need a fix for this in the mean time and you don't know how to use CVS, you could always just add a filter to your view(s) excluding statuses with your default text.
#6
Ouststanding, thanks. I'll pick up from cvs