Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
random permlink suffix removed
Browse files Browse the repository at this point in the history
  • Loading branch information
talhasch committed Nov 27, 2018
1 parent 675f7f0 commit eca52b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/utils/posting-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import getSlug from 'speakingurl';
import { diff_match_patch } from 'diff-match-patch';

export const createPermlink = title => {
const rnd = (Math.random() + 1).toString(16).substring(2);
const slug = getSlug(title);

let perm = `${slug.toString()}-${rnd}est`;
let perm = slug.toString();

// STEEMIT_MAX_PERMLINK_LENGTH
if (perm.length > 255) {
Expand Down

0 comments on commit eca52b2

Please sign in to comment.