applying the fix from friendica issue 1179
Merge pull request #214 from tobiasd/fix_1179

fix friendica/friendica#1179