You can edit a post if you are the post creator, admin or owner of the community or group where the post has been posted.
To edit a post, tap the more functions icon (three vertical dots) on the upper right corner of the post detail page.
If you are not the post creator or group owner or admin, you can only like or comment on the post instead of editing the post.