daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.             my @htagged = $obj->tags;
  3.             my $htag    = MT::Tag->new;
  4.             my $htags   = "";
  5.  
  6.             # convert entry tags into hash tags and populate $htags
  7.  
  8.             foreach (@htagged) {
  9.                 $htag->name($_);
  10.                 if ($htag->is_private) {
  11.                     # private tag, do nothing
  12.                 } else {
  13.                     $htags = $htags . ' #' . $htag->normalize;
  14.                 }
  15.             }
  16.            
  17.             $tweet = $intro . ' ' . $entry->title . ' ' . $obj->permalink . $htags;
  18.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top