Skip to content

Commit

Permalink
Merge pull request #123 from Jtfinlay/fixes
Browse files Browse the repository at this point in the history
IAMA God AMA
  • Loading branch information
edegraff committed Dec 3, 2013
2 parents ec51b70 + d115a92 commit 47c78a0
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,8 @@ public UUID setStoryToAuthor(UUID storyId, String username) {
{
if(m_db.getAuthoredStory(storyId))
return storyId;


String bit = getStory(storyId).getThumbnail().getEncodedBitmap();
Story story = getStory(storyId).newId();
List<StoryFragment> newFragments = new ArrayList<StoryFragment>();
Map<UUID,UUID> oldToNew = new HashMap<UUID, UUID>();
Expand All @@ -895,7 +896,9 @@ public UUID setStoryToAuthor(UUID storyId, String username) {
m_fragmentList.put(fragment.getFragmentID(), fragment);
story.addFragment(fragment);
}


story.setThumbnail((String)null);
story.setThumbnail(bit);
story.setHeadFragmentId(oldToNew.get(story.getHeadFragmentId()));
story.setAuthor(username);
selectStory(storyId);
Expand Down

0 comments on commit 47c78a0

Please sign in to comment.